webrecorder / pywb

Core Python Web Archiving Toolkit for replay and recording of web archives
https://pypi.python.org/pypi/pywb
GNU General Public License v3.0
1.34k stars 207 forks source link

No search results (by domain) if default_locale set #872

Closed Quirinus closed 7 months ago

Quirinus commented 8 months ago

Describe the bug

If you set default_locale in config.yaml, and visit search results (by domain) with no language code in the URL path, it will not return any results.

Steps to reproduce the bug

Install pywb, the i18n package, add a collection. Create a translation, add it to the locale in config.yaml and set default_locale to that language. Run pywb with "wayback". Make a search by domain, and then remove the language code part from the URL, if there is any, and refresh. There will be no results.

Expected behavior

Search results are shown.

Environment

Quirinus commented 8 months ago

Fixed in pull request: #873