diff --git a/docs/search.md b/docs/search.md
index 52835781325045a4b6a6d96e9755c641e01e1fb6..f5850152fa67b74323c8422a57b38d928906ae9e 100644
--- a/docs/search.md
+++ b/docs/search.md
@@ -33,7 +33,8 @@ your search index. Alternatively, you can create the file manually in the
     "id": "{{ forloop.index0 }}",
     "title": "{{ page.title | xml_escape }}",
     "content": "{{ page.content | markdownify | strip_html | xml_escape | remove: 'Table of contents' | remove: page.title | strip_newlines | replace: '\', ' '}}",
-    "url": "{{ page.url | xml_escape }}"
+    "url": "{{ page.url | absolute_url | xml_escape }}",
+    "relUrl": "{{ page.url | xml_escape }}"
   }{% if forloop.last %}{% else %},
   {% endif %}{% endfor %}
 }{% endraw %}