guide icon indicating copy to clipboard operation
guide copied to clipboard

Broken search layout user guide

Open onno-timmerman opened this issue 2 years ago • 5 comments

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

onno-timmerman avatar May 19 '23 15:05 onno-timmerman

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

zerolab avatar May 19 '23 16:05 zerolab

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.

onno-timmerman avatar May 19 '23 16:05 onno-timmerman

?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

zerolab avatar May 19 '23 16:05 zerolab

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).

laymonage avatar May 19 '23 17:05 laymonage

Moving this issue to the guide repo.

lb- avatar May 19 '23 23:05 lb-