Skip to content
Snippets Groups Projects
Commit 2f0eb454 authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Ensure that we can always link to the apply homepage

parent 6933e051
No related branches found
No related tags found
No related merge requests found
from django.conf import settings from django.conf import settings
from opentech.apply.home.models import ApplyHomePage
def global_vars(request): def global_vars(request):
return { return {
'GOOGLE_TAG_MANAGER_ID': getattr(settings, 'GOOGLE_TAG_MANAGER_ID', None), 'GOOGLE_TAG_MANAGER_ID': getattr(settings, 'GOOGLE_TAG_MANAGER_ID', None),
'APPLY_SITE': ApplyHomePage.objects.first(),
} }
<a href="#" class="link link--fixed-apply">Apply</a> {% load wagtailcore_tags %}
<a href="{% pageurl APPLY_SITE %}" class="link link--fixed-apply">Apply</a>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment