Skip to content
New issue

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

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

Already on GitHub? # to your account

validateSearch prevents masking URL #3575

Open
craftgear opened this issue Feb 26, 2025 · 0 comments
Open

validateSearch prevents masking URL #3575

craftgear opened this issue Feb 26, 2025 · 0 comments

Comments

@craftgear
Copy link

craftgear commented Feb 26, 2025

Which project does this relate to?

Router

Describe the bug

When you return default values from validateSearch option, Masking URL does not work anymore.

Your Example Website or App

https://stackblitz.com/edit/tanstack-router-xqyz7u5c

Steps to Reproduce the Bug or Issue

  1. open Stackblitz
  2. open Browser window in a new tab as you can't see url changes inside Stackblitz
  3. click 'to redirect page' link
  4. url has its search params like about?redirect=%2F even though masking URL in redirect.tsx exists
  5. once you remove validateSearch in about.tsx this problem disappears

Expected behavior

Masking URL works with validateSearch default values.

Screenshots or Videos

No response

Platform

  • OS: macOS
  • Browser: Chrome
  • Version: 133.0.6943.128

Additional context

No response

@craftgear craftgear changed the title validateSearch prevents from masking URL validateSearch prevents masking URL Feb 26, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant