Skip to content
This repository has been archived by the owner on Oct 4, 2022. It is now read-only.

Strip out question mark and hash characters from the snippet preview … #1486

Conversation

afercia
Copy link
Contributor

@afercia afercia commented May 4, 2018

Summary

This PR can be summarized in the following changelog entry:

n/a

Relevant technical choices:

For consistency with the React snippet preview, see Yoast/yoast-components#495

Strips out any ? and # from the snippet preview URL.

Test instructions

This PR can be tested by following these steps:

  • yarn link YoastSEO to wpseo
  • build the JS
  • in the wpseo classic snippet preview:
  • edit the snippet preview
  • in the slug field, enter a slug that contains ? and # characters
  • check the slug in the classic snippet preview is rendered correctly, without ? and # and with no missing parts

Fixes Yoast/yoast-components#485

@abotteram
Copy link
Contributor

CR 👍

@abotteram
Copy link
Contributor

Accpetance 👍

@abotteram abotteram merged commit 417e49f into develop May 7, 2018
@abotteram abotteram added this to the 1.32 milestone May 7, 2018
@abotteram abotteram deleted the stories/af/485-snippetpreview-breadcrumbs-url-parse-no-query-hash branch May 7, 2018 09:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants