浏览代码

fix URL for search results

Falko Schindler 1 年之前
父节点
当前提交
2e849a87d7
共有 1 个文件被更改,包括 1 次插入1 次删除
  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