Skip to content

Commit

Permalink
Ignore missing matomo_custom_title in tests
Browse files Browse the repository at this point in the history
The title is only set for specific page, by default it’s derived from
the page title. Otherwise, tests fail locally with:

```
Failed: Undefined template variable 'matomo_custom_title' in 'itou/templates/layout/base.html'
```
  • Loading branch information
francoisfreitag committed May 2, 2024
1 parent 58fdc80 commit 6900e0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion itou/templates/layout/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@
window._paq.push(['setCustomUrl', new URL('{{ matomo_custom_url }}', window.location.origin).href]);
{% endif %}

{% if matomo_custom_title %}
{% if matomo_custom_title|default:"" %}
window._paq.push(['setDocumentTitle', '{{ matomo_custom_title }}']);
{% else %}
/* defaults to a stripped version (no suffix) of the page title. */
Expand Down

0 comments on commit 6900e0f

Please sign in to comment.