Better targetting of internal links
This commit is contained in:
parent
d3d7a8fc7f
commit
56a2a32974
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@
|
|||
|
||||
{% for name, link in LINKS %}
|
||||
{# Open external links in new window, relative links in the same window #}
|
||||
<li><a href="{{ link }}" {% if link[:4] == 'http' %}target="_blank"{% endif %}>{{ name }}</a></li>
|
||||
<li><a href="{{ link }}" {% if link[0] != '/' and not link.startswith(SITEURL) %}target="_blank"{% endif %}>{{ name }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</nav>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue