Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pattern match strips out forward slash. #381

Open
1 task done
EarthlingDavey opened this issue May 7, 2024 · 0 comments
Open
1 task done

Pattern match strips out forward slash. #381

EarthlingDavey opened this issue May 7, 2024 · 0 comments
Labels
type:bug Something isn’t working.

Comments

@EarthlingDavey
Copy link

EarthlingDavey commented May 7, 2024

Describe the bug

When using * to try and catch an optional slash and string, the slash is stripped from the replacement.

Steps to Reproduce

  1. Create a redirect with source /test*
  2. Regular Expressions false
  3. Redirect to https://google.com$1
  4. Visit /test/abc Expected destination is https://google.com/abc actual destination is https://google.comabc

Screenshots, screen recording, code snippet

NA

Environment information

NA

WordPress information

NA

Code of Conduct

  • I agree to follow this project's Code of Conduct
@EarthlingDavey EarthlingDavey added the type:bug Something isn’t working. label May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn’t working.
Projects
None yet
Development

No branches or pull requests

1 participant