diff --git a/layouts/partials/search.html b/layouts/partials/search.html
index 3c5acda17c..d0f776bc5d 100644
--- a/layouts/partials/search.html
+++ b/layouts/partials/search.html
@@ -11,14 +11,15 @@
{{- warnf "UNSUPPORTED usage of 'searchpage' output format found, remove it from your config; see https://mcshelby.github.io/hugo-theme-relearn/introduction/releasenotes/7/#7-0-0" }}
{{- end }}
{{- if not .Site.Params.disableSearchIndex }}
- {{- $url := path.Join .Site.LanguagePrefix (trim (or .Site.Params.searchIndexURL "searchindex.js") "/") }}
+ {{- $url := trim (or .Site.Params.searchIndexURL "searchindex.js") "/" }}
+ {{- $url = path.Join (path.Dir $url) (print (path.BaseName $url) "." .Language.Lang (path.Ext $url)) }}
{{- if .IsHome }}
{{- $templateres := resources.Get "_relearn_searchindex.js" }}
{{- $resultres := $templateres | resources.ExecuteAsTemplate $url .Site.Home }}
{{- /* the following code causes Hugo to generate our file - although it is in comments */}}
{{- end }}
{{- if not .Site.Params.disableSearchPage }}
{{- with .Site.GetPage "_relearn_searchpage" }}
diff --git a/layouts/partials/version.txt b/layouts/partials/version.txt
index efff2c4d70..4d8f58bf08 100644
--- a/layouts/partials/version.txt
+++ b/layouts/partials/version.txt
@@ -1 +1 @@
-7.0.1+fef9c630c4745054041e7a5bcd4e7a608c224308
\ No newline at end of file
+7.0.1+4ed15c8096764c75a97ef858bb3a4c0d784fe888
\ No newline at end of file