Browse Source

fix URL for search results

Falko Schindler 1 năm trước cách đây
mục cha
commit
2e849a87d7
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      website/documentation/search.py

+ 1 - 1
website/documentation/search.py

@@ -23,7 +23,7 @@ def build_search_index() -> None:
         {
             'title': f'{documentation.heading.replace("*", "")}: {part.title}',
             'content': part.description or '',
-            'url': f'{documentation.name}#{part.link_target}',
+            'url': f'/documentation/{documentation.name}#{part.link_target}',
         }
         for documentation in registry.values()
         for part in documentation.parts