wagtail / guide

A website to teach Wagtail CMS to content editors, moderators and administrators.
https://guide.wagtail.org
BSD 3-Clause "New" or "Revised" License
32 stars 26 forks source link

Broken search layout user guide #309

Open onno-timmerman opened 1 year ago

onno-timmerman commented 1 year ago

was looking something up for somebody and used the search on the wagtail guide. When using the search something seems broken :)

Page not found - Wagtail Guide 2023-05-19 17-52-05
zerolab commented 1 year ago

Can you check the "network" tab and see what URLs it tries to GET, and the actual response?

onno-timmerman commented 1 year ago
Search - Wagtail Guide 2023-05-19 18-19-40

No response as it block with the popup. Seems the problem does occur not always. I took this time a couple of searches.

zerolab commented 1 year ago

?query=pro shows as 302 then a 404. can you check each of them to get the full URLs? I tried replicating and could not, so having as much info would help find the issue faster

laymonage commented 1 year ago

This is reproducible if your browser's preferred language is not available on the website.

For example, with the following setup:

image

Going to https://guide.wagtail.org redirects to https://guide.wagtail.org/id-latest/ that shows a 404 page. Doing search while on this page will trigger this issue.

Similarly, for some reason doing the AJAX-based search while on the search page e.g. https://guide.wagtail.org/en-latest/search/?query=hello will also trigger this issue (only if the language is not available, like above).

lb- commented 1 year ago

Moving this issue to the guide repo.