Fixed search replacing %20 with + in document URLs

This commit is contained in:
squidfunk 2020-10-01 09:28:16 +02:00
parent 4277a58f92
commit bf9f9bf16e
7 changed files with 7 additions and 7 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{
"assets/javascripts/bundle.js": "assets/javascripts/bundle.d54c2622.min.js",
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.d54c2622.min.js.map",
"assets/javascripts/bundle.js": "assets/javascripts/bundle.97185c3a.min.js",
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.97185c3a.min.js.map",
"assets/javascripts/vendor.js": "assets/javascripts/vendor.6c4496e8.min.js",
"assets/javascripts/vendor.js.map": "assets/javascripts/vendor.6c4496e8.min.js.map",
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.4ac00218.min.js",

View File

@ -173,7 +173,7 @@
</div>
{% block scripts %}
<script src="{{ 'assets/javascripts/vendor.6c4496e8.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.d54c2622.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.97185c3a.min.js' | url }}"></script>
{%- set translations = {} -%}
{%- for key in [
"clipboard.copy",

View File

@ -65,7 +65,7 @@ function renderSearchDocument(
.slice(0, -1)
/* Render article or section, depending on flags */
const url = document.location.replace(/%20/g, "+")
const url = document.location
return (
<a href={url} class="md-search-result__link" tabIndex={-1}>
<article