Fixed issue that page title were reformatted unintended.

This commit is contained in:
Jan Böhmer 2022-07-24 15:25:06 +02:00
parent fa5f5bce28
commit 0b31a3b095
2 changed files with 2 additions and 2 deletions

View file

@ -15,4 +15,4 @@
<div {{ stimulus_controller('turbo/global_reload') }}></div> <div {{ stimulus_controller('turbo/global_reload') }}></div>
{% endif %} {% endif %}
<div class="d-none" data-title="{% apply title %}{{ page_title }}{% endapply %}" {{ stimulus_controller('turbo/title') }}></div> <div class="d-none" data-title="{% apply trim %}{{ current_page_title }}{% endapply %}" {{ stimulus_controller('turbo/title') }}></div>

View file

@ -25,7 +25,7 @@
<link rel="mask-icon" href="{{ asset('icon/safari-pinned-tab.svg') }}" color="#5bbad5"> <link rel="mask-icon" href="{{ asset('icon/safari-pinned-tab.svg') }}" color="#5bbad5">
<title>{% apply trim %}{% block title %}{{ partdb_title}}{% endblock %}{% endapply %}</title> <title>{% apply trim %}{% block title %}{{ partdb_title}}{% endblock %}{% endapply %}</title>
{% set page_title = block("title") %} {% set current_page_title = block("title") %}
{% block stylesheets %} {% block stylesheets %}
{# Include the main bootstrap theme based on user/global setting #} {# Include the main bootstrap theme based on user/global setting #}