diff --git a/app/templates/base.html b/app/templates/base.html
index 254f949..abb6c16 100644
--- a/app/templates/base.html
+++ b/app/templates/base.html
@@ -40,6 +40,9 @@
+ {% if request.args.get('source') %}
+
+ {% endif %}
{% endblock %}
{% block stylesheets %}
@@ -52,9 +55,9 @@
- {%- if feature.LOGO_ADORNMENTS_CSS %}
+ {% if feature.LOGO_ADORNMENTS_CSS %}
- {%- endif %}
+ {% endif %}
{% endblock %}
{% block cookies %}
diff --git a/app/templates/blog/atom_feed.xml b/app/templates/blog/atom_feed.xml
index 598123a..e1d4df5 100644
--- a/app/templates/blog/atom_feed.xml
+++ b/app/templates/blog/atom_feed.xml
@@ -25,7 +25,7 @@
{{ blog_post.teaser_image.jpeg.full_url }}
{{ blog_post.teaser_image.jpeg.full_url }}
{% endif %} #}
- {{ url_for('wagtail.page_permalink', page_id=blog_post.id, _external=True, _scheme='https') }}
+ {{ url_for('wagtail.page_permalink', page_id=blog_post.id, source='atom', _external=True, _scheme='https') }}
{{ blog_post.teaser_text }}
{% if blog_post.authors %}
{% for author in blog_post.authors %}
diff --git a/app/templates/blog/rss_feed.xml b/app/templates/blog/rss_feed.xml
index 1e6806c..ee21f6e 100644
--- a/app/templates/blog/rss_feed.xml
+++ b/app/templates/blog/rss_feed.xml
@@ -42,7 +42,7 @@
{{ blog_post.full_url }}
- {{ url_for('wagtail.page_permalink', page_id=blog_post.id, _external=True, _scheme='https') }}
+ {{ url_for('wagtail.page_permalink', page_id=blog_post.id, source='rss', _external=True, _scheme='https') }}
{% if blog_post.authors %}
{% if title %}
-{% endif %}
+{%- endif %}
{% if page_data.meta and page_data.meta.twitter_og_title %}
-{% endif %}
+{%- endif %}
{% if description %}
-{% endif %}
+{%- endif %}
{% if page_data.meta and page_data.meta.twitter_og_description %}
-{% endif %}
+{%- endif %}
{% if url %}
-{% endif %}
+{%- endif %}
{%- set og_image = None %}
{% if page_data.meta and page_data.meta.facebook_og_image %}
@@ -45,14 +45,14 @@
'height': page_data.meta.teaser_image.jpeg.height,
'type': 'image/jpeg'
} %}
-{% endif %}
+{%- endif %}
{% if og_image %}
-{% endif %}
+{%- endif %}
{%- set og_image_twitter = None %}
{% if page_data.meta and page_data.meta.twitter_og_image %}
@@ -65,26 +65,26 @@
{% set og_image_twitter = {
'src': page_data.meta.teaser_image.jpeg.full_url
} %}
-{% endif %}
+{%- endif %}
{% if og_image_twitter %}
-{% endif %}
+{%- endif %}
{% if page_data.id %}
-{% endif %}
+{%- endif %}
{% if page_data.title %}
-{% endif %}
+{%- endif %}
{% if page_data.meta and page_data.meta.type %}
-{% endif %}
+{%- endif %}
{% if page_data.tags and page_data.tags | length %}
-{% endif %}
+{%- endif %}
{% endmacro %}
diff --git a/app/wagtail/routes.py b/app/wagtail/routes.py
index 018dfad..3a6a18c 100644
--- a/app/wagtail/routes.py
+++ b/app/wagtail/routes.py
@@ -119,6 +119,7 @@ def page_permalink(page_id):
url_for(
"wagtail.page",
path=page_data["meta"]["url"].strip("/"),
+ **request.args.to_dict(),
),
code=302,
)