Skip to content

Commit

Permalink
Merge pull request #1005 from City-of-Helsinki/UHF-10060
Browse files Browse the repository at this point in the history
UHF-10060: Fix system error pages
  • Loading branch information
teroelonen authored Jun 11, 2024
2 parents 14c0591 + eb24b08 commit f0a50c9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions templates/layout/page--system--401.html.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{% include 'page--401.html.twig' %}
1 change: 1 addition & 0 deletions templates/layout/page--system--403.html.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{% include 'page--403.html.twig' %}
1 change: 1 addition & 0 deletions templates/layout/page--system--404.html.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{% include 'page--404.html.twig' %}
3 changes: 2 additions & 1 deletion templates/navigation/links--language-block.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
{% set language_link = '' %}
{% set lang = item.link['#options']['#abbreviation'] %}
{% set untranslated = item.link['#options']['#untranslated'] %}
{% set nolink = item.link['#options']['#nolink'] %}
{% set alternative_language = not item.link['#options']['#primary_language'] %}
{% set classes = ['language-link'] %}
{% set ariaCurrent = null %}
Expand All @@ -50,7 +51,7 @@
{% if not untranslated and not alternative_language and lang != current_langcode %}
{% set language_link = path('<current>', {}, {'language': item.link['#options']['language']}) %}
{% set element = 'a' %}
{% elseif lang == current_langcode %}
{% elseif lang == current_langcode and not nolink %}
{% set language_link = path('<current>', {}, {'language': item.link['#options']['language']}) %}
{% set element = 'a' %}
{% set ariaCurrent = create_attribute({'aria-current': 'true'}) %}
Expand Down

0 comments on commit f0a50c9

Please sign in to comment.