Fixed broken link after history change

This commit is contained in:
squidfunk 2020-04-05 11:33:41 +02:00
parent f8b6b0e40c
commit 00ad2d74d6
10 changed files with 18 additions and 18 deletions

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,10 +1,10 @@
{ {
"assets/javascripts/bundle.js": "assets/javascripts/bundle.fc6b13cf.min.js", "assets/javascripts/bundle.js": "assets/javascripts/bundle.dd105161.min.js",
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.fc6b13cf.min.js.map", "assets/javascripts/bundle.js.map": "assets/javascripts/bundle.dd105161.min.js.map",
"assets/javascripts/vendor.js": "assets/javascripts/vendor.c1fcc1cc.min.js", "assets/javascripts/vendor.js": "assets/javascripts/vendor.5b460a48.min.js",
"assets/javascripts/vendor.js.map": "assets/javascripts/vendor.c1fcc1cc.min.js.map", "assets/javascripts/vendor.js.map": "assets/javascripts/vendor.5b460a48.min.js.map",
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.3bc815f0.min.js", "assets/javascripts/worker/search.js": "assets/javascripts/worker/search.7f7c8775.min.js",
"assets/javascripts/worker/search.js.map": "assets/javascripts/worker/search.3bc815f0.min.js.map", "assets/javascripts/worker/search.js.map": "assets/javascripts/worker/search.7f7c8775.min.js.map",
"assets/stylesheets/main.css": "assets/stylesheets/main.7584781b.min.css", "assets/stylesheets/main.css": "assets/stylesheets/main.7584781b.min.css",
"assets/stylesheets/palette.css": "assets/stylesheets/palette.4444686e.min.css" "assets/stylesheets/palette.css": "assets/stylesheets/palette.4444686e.min.css"
} }

View File

@ -178,8 +178,8 @@
{% endblock %} {% endblock %}
</div> </div>
{% block scripts %} {% block scripts %}
<script src="{{ 'assets/javascripts/vendor.c1fcc1cc.min.js' | url }}"></script> <script src="{{ 'assets/javascripts/vendor.5b460a48.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.fc6b13cf.min.js' | url }}"></script> <script src="{{ 'assets/javascripts/bundle.dd105161.min.js' | url }}"></script>
{%- set translations = {} -%} {%- set translations = {} -%}
{%- for key in [ {%- for key in [
"clipboard.copy", "clipboard.copy",
@ -203,7 +203,7 @@
base: "{{ base_url }}", base: "{{ base_url }}",
features: {{ config.theme.features | tojson }}, features: {{ config.theme.features | tojson }},
search: Object.assign({ search: Object.assign({
worker: "{{ 'assets/javascripts/worker/search.3bc815f0.min.js' | url }}" worker: "{{ 'assets/javascripts/worker/search.7f7c8775.min.js' | url }}"
}, typeof search !== "undefined" && search) }, typeof search !== "undefined" && search)
}) })
</script> </script>

View File

@ -145,7 +145,6 @@ export function setupInstantLoading(
/* Filter state changes to dispatch */ /* Filter state changes to dispatch */
const push$ = state$ const push$ = state$
.pipe( .pipe(
distinctUntilChanged((prev, next) => prev.url.href === next.url.href),
filter(({ url }) => !isAnchorLocation(url)), filter(({ url }) => !isAnchorLocation(url)),
share() share()
) )
@ -164,6 +163,7 @@ export function setupInstantLoading(
/* Emit location change */ /* Emit location change */
merge(push$, pop$) merge(push$, pop$)
.pipe( .pipe(
distinctUntilChanged((prev, next) => prev.url.href === next.url.href),
pluck("url") pluck("url")
) )
.subscribe(location$) .subscribe(location$)