2
0
mirror of https://github.com/inventree/inventree-website.git synced 2025-06-17 12:35:27 +00:00

make internal stuff relativ

This commit is contained in:
2021-11-09 00:00:14 +01:00
parent f877e11f5c
commit f2c7c544c1
4 changed files with 15 additions and 8 deletions

7
_includes/link.html Normal file
View File

@ -0,0 +1,7 @@
{% if include.item.site %}
{{ site[include.item.site] }}
{% elsif include.item.internal %}
{{ include.item.internal | relativurl }}
{% else %}
{{ include.item.link }}
{% endif %}