Skip to content

Commit

Permalink
Fixed handling of search parameters in the header bar. Changed cookie…
Browse files Browse the repository at this point in the history
… settings
  • Loading branch information
Takala Joeli A committed Sep 13, 2022
1 parent 4d2c620 commit 10d1595
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resource/js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function createCookie(name,value,days) {
date.setTime(date.getTime() + (days*24*60*60*1000));
expires = "; expires=" + date.toGMTString();
}
document.cookie = name + "=" + value + expires + "; path=/; SameSite=None; Secure";
document.cookie = name + "=" + value + expires + "; path=/; SameSite=Lax";
}

function readCookie(name) {
Expand Down
4 changes: 2 additions & 2 deletions view/headerbar.twig
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
?clang={{langcode}}
{%- set paramSeparator = '&' -%}
{%- endif %}
{%- if term %}{{ paramSeparator }}q={{ term }}{% set paramSeparor = '&' %}{% endif -%}
{%- if vocabs %}{{ paramSepartor }}vocabs={{ vocabs }}{% endif -%}
{%- if term %}{{ paramSeparator }}q={{ term }}{% set paramSeparator = '&' %}{% endif -%}
{%- if vocabs %}{{ paramSeparator }}vocabs={{ vocabs }}{% endif -%}
" class="lang-button" hreflang="{{ langcode }}">{{ langcode | lang_name(request.lang) }}</a></li>
{% endfor %}
{% endif %}
Expand Down

0 comments on commit 10d1595

Please sign in to comment.