Use REDIRECT_TO_CMS and MULTISITE_CMS_FALLBACK to construct

/hosting footer urls
This commit is contained in:
PCoder 2018-04-07 10:25:21 +02:00
parent 56f6c87fab
commit ffe4eb4123

View file

@ -4,15 +4,15 @@
<div class="container"> <div class="container">
<ul class="list-inline"> <ul class="list-inline">
<li> <li>
<a class="url-init" href="{% url 'datacenterlight:index' %}">{% trans "Home" %}</a> <a class="url-init" href="{% if REDIRECT_TO_CMS %}{% url pages-root %}{% else %}https://{{MULTISITE_CMS_FALLBACK}}{% endif %}">{% trans "Home" %}</a>
</li> </li>
<li class="footer-menu-divider">&sdot;</li> <li class="footer-menu-divider">&sdot;</li>
<li> <li>
<a class="url-init" href="{% url 'datacenterlight:index' %}#contact">{% trans "Contact" %}</a> <a class="url-init" href="{% if REDIRECT_TO_CMS %}{% url pages-root %}{% else %}https://{{MULTISITE_CMS_FALLBACK}}{% endif %}#contact">{% trans "Contact" %}</a>
</li> </li>
<li class="footer-menu-divider">&sdot;</li> <li class="footer-menu-divider">&sdot;</li>
<li> <li>
<a class="url-init" href="/cms/terms-of-service">{% trans "Terms of Service" %}</a> <a class="url-init" href="https://{{MULTISITE_CMS_FALLBACK}}/cms/terms-of-service">{% trans "Terms of Service" %}</a>
</li> </li>
</ul> </ul>