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

Search breaks and redirects to "/" when site is served from a subdirectory #46

Open
them-es opened this issue Apr 1, 2023 · 1 comment

Comments

@them-es
Copy link

them-es commented Apr 1, 2023

This happens on Multisite installations et al.

https://github.com/WordPress/wp-movies-demo/blob/main/src/blocks/interactive/movie-search/view.js
await navigate('/${url.search}${url.hash}') and await navigate('/') should include the actual Site URL.

@SantosGuillamot
Copy link
Collaborator

Thanks for reporting this! You're totally right. Actually, I believe this should be solved in the Interactivity API, in the navigate function we are using. This way, any multisite using a subdirectory will work by default. I've opened a new issue to discuss it. Feel free to share your thoughts there 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants