mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed search replacing %20 with + in document URLs
This commit is contained in:
parent
4277a58f92
commit
bf9f9bf16e
2
material/assets/javascripts/bundle.97185c3a.min.js
vendored
Normal file
2
material/assets/javascripts/bundle.97185c3a.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
material/assets/javascripts/bundle.97185c3a.min.js.map
Normal file
1
material/assets/javascripts/bundle.97185c3a.min.js.map
Normal file
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
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"assets/javascripts/bundle.js": "assets/javascripts/bundle.d54c2622.min.js",
|
"assets/javascripts/bundle.js": "assets/javascripts/bundle.97185c3a.min.js",
|
||||||
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.d54c2622.min.js.map",
|
"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": "assets/javascripts/vendor.6c4496e8.min.js",
|
||||||
"assets/javascripts/vendor.js.map": "assets/javascripts/vendor.6c4496e8.min.js.map",
|
"assets/javascripts/vendor.js.map": "assets/javascripts/vendor.6c4496e8.min.js.map",
|
||||||
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.4ac00218.min.js",
|
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.4ac00218.min.js",
|
||||||
|
@ -173,7 +173,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
<script src="{{ 'assets/javascripts/vendor.6c4496e8.min.js' | url }}"></script>
|
<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 = {} -%}
|
{%- set translations = {} -%}
|
||||||
{%- for key in [
|
{%- for key in [
|
||||||
"clipboard.copy",
|
"clipboard.copy",
|
||||||
|
@ -65,7 +65,7 @@ function renderSearchDocument(
|
|||||||
.slice(0, -1)
|
.slice(0, -1)
|
||||||
|
|
||||||
/* Render article or section, depending on flags */
|
/* Render article or section, depending on flags */
|
||||||
const url = document.location.replace(/%20/g, "+")
|
const url = document.location
|
||||||
return (
|
return (
|
||||||
<a href={url} class="md-search-result__link" tabIndex={-1}>
|
<a href={url} class="md-search-result__link" tabIndex={-1}>
|
||||||
<article
|
<article
|
||||||
|
Loading…
Reference in New Issue
Block a user