Skip to content

Commit 2c5ec99

Browse files
authored
fix: Allow page titles to contain ampersand (&) (#202)
1 parent cb8f95c commit 2c5ec99

File tree

12 files changed

+12
-2
lines changed

12 files changed

+12
-2
lines changed

djangocms_frontend/templates/djangocms_frontend.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<meta property="og:url" content="{{ request.build_absolute_uri|urlencode:"&?" }}"/>
1616
{% endblock canonical_url %}
1717
{% block fb_meta %}{% endblock fb_meta %}
18-
<title>{% block title %}{% page_attribute "page_title" %}{% endblock %}</title>
18+
<title>{% block title %}{{ request.current_page.get_page_title|striptags }}{% endblock %}</title>
1919
{% block base_css %}{% endblock %}
2020
{% endspaceless %}{% render_block 'css' %}{% spaceless %}
2121
{% block page_head %}{% endblock %}

tests/requirements/dj32_cms310.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22

33
Django>=3.2,<3.3
44
django-cms>=3.10, <3.11
5+
djangocms-text-ckeditor

tests/requirements/dj32_cms38.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
Django>=3.2,<3.3
44
django-cms>=3.8,<3.9
55
django-treebeard<4.5
6+
djangocms-text-ckeditor

tests/requirements/dj32_cms39.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22

33
Django>=3.2,<3.3
44
django-cms>=3.9,<4.0
5+
djangocms-text-ckeditor

tests/requirements/dj32_cms41.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Django>=3.2,<4.0
44
django-cms>=4.1rc2
5-
-e git+https://github.com/django-cms/djangocms-text-ckeditor.git@support/4.0.x#egg=djangocms-text-ckeditor
5+
djangocms-text-ckeditor
66
-e git+https://github.com/fsbraun/djangocms-alias.git@master#egg=djangocms-alias
77
-e git+https://github.com/fsbraun/djangocms-url-manager.git@master#egg=djangocms-url-manager
88
https://github.com/django-cms/djangocms-versioning/tarball/master#egg=djangocms-versioning

tests/requirements/dj40_cms311.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
django-filer>=2.2
44
Django>=4.0,<4.1
55
django-cms>=3.11,<4.0
6+
djangocms-text-ckeditor

tests/requirements/dj40_cms41.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
Django>=4.0,<4.1
44
django-cms>=4.1rc2
5+
djangocms-text-ckeditor
56
-e git+https://github.com/fsbraun/djangocms-alias.git@master#egg=djangocms-alias
67
-e git+https://github.com/fsbraun/djangocms-url-manager.git@master#egg=djangocms-url-manager
78
https://github.com/django-cms/djangocms-versioning/tarball/master#egg=djangocms-versioning

tests/requirements/dj41_cms311.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
django-filer>=2.2
44
Django>=4.1,<4.2
55
django-cms>=3.11,<3.12
6+
djangocms-text-ckeditor

tests/requirements/dj41_cms41.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ django-cms>=4.1
55
djangocms-alias>=2.0.0
66
djangocms-versioning>=2.0.0
77
git+https://github.com/fsbraun/djangocms-url-manager.git@master#egg=djangocms-url-manager
8+
djangocms-text-ckeditor

tests/requirements/dj42_cms311.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
django-filer>=2.2
44
Django>=4.2,<5
55
django-cms>=3.11,<3.12
6+
djangocms-text-ckeditor

0 commit comments

Comments
 (0)