fix(routing): handle slashes in search queries
Changed query parameter type to 'path' in search endpoint to ensure that slashes in search queries are correctly handled. This resolves issues with queries containing slashes not being processed properly. Fixes #37.
This commit is contained in:
parent
9b62a5704b
commit
1bbb37be7e
1 changed files with 1 additions and 1 deletions
|
@ -406,7 +406,7 @@ def wiki_article(
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@app.route("/<project>/<lang>/search/<query>")
|
@app.route("/<project>/<lang>/search/<path:query>")
|
||||||
def search_results(
|
def search_results(
|
||||||
project: str, lang: str, query: str
|
project: str, lang: str, query: str
|
||||||
) -> Union[Text, Tuple[Text, int]]:
|
) -> Union[Text, Tuple[Text, int]]:
|
||||||
|
|
Loading…
Reference in a new issue