From 1bbb37be7edad383f8fcf68410f66fa9a934add9 Mon Sep 17 00:00:00 2001 From: Kumi Date: Fri, 30 Aug 2024 17:05:26 +0200 Subject: [PATCH] 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. --- src/wikimore/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wikimore/app.py b/src/wikimore/app.py index c9f13d5..de8e570 100644 --- a/src/wikimore/app.py +++ b/src/wikimore/app.py @@ -406,7 +406,7 @@ def wiki_article( ) -@app.route("///search/") +@app.route("///search/") def search_results( project: str, lang: str, query: str ) -> Union[Text, Tuple[Text, int]]: