🐛 fix(footer): fix external link redirection in footer (#219)

Co-authored-by: welpo <welpo@users.noreply.github.com>
This commit is contained in:
Joberth Rogers
2023-10-31 09:29:09 -03:00
committed by GitHub
parent 7752bc38bf
commit de91dfb0a7
6 changed files with 11 additions and 0 deletions

View File

@@ -70,6 +70,12 @@
{%- if menu.url == "sitemap.xml" -%}
{%- set url = get_url(path=menu.url, trailing_slash=trailing_slash) -%}
{%- elif menu.url is starting_with("http") -%}
{%- if menu.trailing_slash -%}
{%- set url = menu.url ~ "/" -%}
{%- else -%}
{%- set url = menu.url -%}
{%- endif -%}
{%- else -%}
{%- set url = get_url(path=menu.url, lang=lang, trailing_slash=trailing_slash) -%}
{%- endif -%}