"search404_ignore_extensions" unexpected behavior

Created on 31 October 2023, over 1 year ago

Problem/Motivation

Extensions defined in "search404_ignore_extensions" will not only be removed from the query, if they are at the end of the string, but also, when they are in the middle of a string, which results in unexpected behavior.

Steps to reproduce

Use a search query on "/bla/html/blub" with the default settings:
Expected behavior: A search query on "bla html blub" will be executed, since "html" isn't defined as an extension.
Actual behavior: A search query on "bla blub" is executed

Proposed resolution

Adjust the 'search404_ignore_extensions' logic.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇩🇪Germany Grevil

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024