Fixed view source button link

This commit is contained in:
squidfunk 2023-01-03 09:46:44 +01:00
parent 1287ce8cb2
commit feef8cd6d5
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@
</a>
{% endif %}
{% if "content.action.view" in features %}
<a href="{{ page.edit_url | replace(edit, view) }}" title="{{ lang.t('action.view') }}" class="md-content__button md-icon">
<a href="{{ page.edit_url | replace('edit', 'raw') }}" title="{{ lang.t('action.view') }}" class="md-content__button md-icon">
{% set icon = config.theme.icon.view or "material/file-eye-outline" %}
{% include ".icons/" ~ icon ~ ".svg" %}
</a>

View File

@ -38,7 +38,7 @@
<!-- View button -->
{% if "content.action.view" in features %}
<a
href="{{ page.edit_url | replace(edit, view) }}"
href="{{ page.edit_url | replace('edit', 'raw') }}"
title="{{ lang.t('action.view') }}"
class="md-content__button md-icon"
>