Skip to content

Commit

Permalink
For Wagtail versions below 3.0, the locale must be added at this point.
Browse files Browse the repository at this point in the history
  • Loading branch information
benmth committed Jun 4, 2022
1 parent af80179 commit a25dd9b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
{% block header %}
{% include "wagtailadmin/shared/header_with_locale_selector.html" with title=view.get_page_title subtitle=view.get_page_subtitle icon=view.header_icon tabbed=1 merged=1 %}
{% endblock %}
{% block form_action %}{{ view.create_url }}{% if wagtail_version < "3.0" %}?locale={{ locale.language_code }}{% endif %}{% endblock %}

0 comments on commit a25dd9b

Please sign in to comment.