forked from deepStateMirrors/tabi
🐛 fix(footer): fix external link redirection in footer (#219)
Co-authored-by: welpo <welpo@users.noreply.github.com>
This commit is contained in:
parent
7752bc38bf
commit
de91dfb0a7
6 changed files with 11 additions and 0 deletions
|
@ -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 -%}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue