Skip to content

Commit

Permalink
Fixed view source button link
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Jan 3, 2023
1 parent 1287ce8 commit feef8cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion material/partials/actions.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion src/partials/actions.html
Original file line number Diff line number Diff line change
Expand Up @@ -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"
>
Expand Down

0 comments on commit feef8cd

Please sign in to comment.