Skip to content

Commit

Permalink
Partial fix for Chinese frontpage 404
Browse files Browse the repository at this point in the history
  • Loading branch information
sspj-does-weather committed Nov 22, 2024
1 parent 716ddc6 commit bcaece3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
/web/sites/*/settings*.php
/web/sites/*/services*.yml

# Ignore user interface translations
/web/config/sync/language/

# Ignore paths that contain user-generated content.
/web/sites/*/files
/web/sites/*/private
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
<main role="main" class="flex-1">
{# link is in html.html.twig #}
<a id="main-content" tabindex="-1"></a>
{% if path('<current>') == "/home" %}
{% if path('<current>') ends with "/home" %}
{% include(directory ~ "/templates/layout/frontpage.html.twig") %}
{% else %}
{% include(directory ~ "/templates/partials/location-search.html.twig") with { place: point.place } %}
Expand Down

0 comments on commit bcaece3

Please sign in to comment.