2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00

Open External Links in new window (#5674)

* Update clip_link.html

* Update item_base.html

* Add new_window to all external links
This commit is contained in:
Kenneth Lorthioir
2023-10-07 00:41:33 -04:00
committed by GitHub
parent a779aa3a99
commit e76fa11e63
9 changed files with 9 additions and 9 deletions

View File

@ -1,5 +1,5 @@
{% load i18n %}
{% if link %}
<a href="{{ link }}">{{ link }}</a>{% include 'clip.html' %}
<a href="{{ link }}" {% if new_window %}target="_blank" rel="noopener"{% endif %}>{{ link }}</a>{% include 'clip.html' %}
{% endif %}