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 does not work on subpages #6428

Open
felix-ulonska opened this issue Oct 23, 2024 · 2 comments
Open

Search does not work on subpages #6428

felix-ulonska opened this issue Oct 23, 2024 · 2 comments

Comments

@felix-ulonska
Copy link

Describe the bug
I am on subpage and use the search. If i am on a subpage such as 'de/foo/bar' and get routed to 'de/foo/search' but the search does not open.

My fix for now is: in searchwidget.jsx replace history.push('./search') with `history.push('de/search')

To Reproduce
Steps to reproduce the behavior:

  1. Go to subpage 'de/foo/bar'
  2. Click on search
  3. See error

Expected behavior
I should be on the search page.

Software (please complete the following information):

  • OS: Linux
  • Browser Firefox
  • Volto Version [e.g. 17.17.0]
  • Plone Version [e.g. 6.0.6]
  • Plone REST API Version?
@plone plone deleted a comment from prashant235913 Oct 23, 2024
@plone plone deleted a comment from prashant235913 Oct 23, 2024
@plone plone deleted a comment from Manashgoswamii Oct 23, 2024
@plone plone deleted a comment from davisagli Oct 23, 2024
Rishith-S pushed a commit to Rishith-S/volto that referenced this issue Nov 8, 2024
@Rishith-S Rishith-S mentioned this issue Nov 8, 2024
9 tasks
Rishith-S added a commit to Rishith-S/volto that referenced this issue Nov 8, 2024
@Rishith-S Rishith-S mentioned this issue Nov 8, 2024
9 tasks
@stevepiercy
Copy link
Collaborator

@felix-ulonska I can't repeat this issue on the Volto 18 demo. https://volto.demo.plone.org/search?SearchableText=foundation

I notice you have /de in the path. Is that the language code for German or an arbitrary string?

Do you have some customizations or add-ons?

@Rishith-S
Copy link

Rishith-S commented Nov 8, 2024

@stevepiercy I think the issue is when you are on https://volto.demo.plone.org/search?SearchableText=foundation and then if we click on the first link with title Plone Foundation it will open a new link https://volto.demo.plone.org/images/plone-foundation.png and then if we use the search bar on header it doesn't work

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

Successfully merging a pull request may close this issue.

3 participants