Skip to content

Commit

Permalink
make navbar strip type params when switching
Browse files Browse the repository at this point in the history
Co-authored-by: e-five <[email protected]>
  • Loading branch information
asdfzdfj and e-five256 committed May 15, 2024
1 parent 0b4df4c commit 8fb2fff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/layout/_header_nav.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@
<a href="
{% if magazine is defined and magazine %}
{% if is_route_name_starts_with('front') %}
{{ options_url('content', 'microblog', 'front_magazine', {'name': magazine.name,'p': null}) }}
{{ options_url('content', 'microblog', 'front_magazine', {'name': magazine.name,'p': null,'type':null}) }}
{% else %}
{{ navbar_posts_url(magazine) }}
{% endif %}
{% else %}
{% if is_route_name_starts_with('front') %}
{{ options_url('content', 'microblog', 'front', {'p': null}) }}
{{ options_url('content', 'microblog', 'front', {'p': null,'type':null}) }}
{% else %}
{{ navbar_posts_url(null) }}
{% endif %}
Expand Down

0 comments on commit 8fb2fff

Please sign in to comment.