diff --git a/home/static/js/global/admin.js b/home/static/js/global/admin.js index 42134b889..968eb710f 100644 --- a/home/static/js/global/admin.js +++ b/home/static/js/global/admin.js @@ -22,4 +22,17 @@ $(document).ready(function () { 'Giving a Group the EDIT permission will also allow them to download data for Polls, Surveys, and Quizzes ' + 'for the Pages they can access.') + $('#id_is_permanent').parent().next('p').html('Recommendation: Do not use permanent redirects if you are setting ' + + 'up a promotion, QR code, or similar. Use permanent redirects if you are permanently moving the location of ' + + 'content on your site.
Cons: If you change or even delete a permanent redirect after you create it, the ' + + 'users who already accessed it will still continue to behave as if the original redirect is in place. This is ' + + 'because permanent redirects are normally stored by the user\'s browser until they delete their browser cache. ' + + 'Your browser may also store the permanent redirect until you clear its cache.
Pros: Permanent redirects ' + + 'ensure search engines forget the old page (the \'Redirect from\') and index the new page instead.' + ).css({'color': 'red'}); + + if (window.location.pathname.indexOf('/admin/redirects/add/') === 0){ + $('#id_is_permanent').removeAttr('checked'); + } + }); diff --git a/requirements.txt b/requirements.txt index 3109799af..1196ae1e1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -19,7 +19,7 @@ Markdown==3.3.7 wagtail==2.15.* wagtail-cache~=1.2.1 wagtailmedia==0.10.* -wagtailmenus~=3.0 +wagtailmenus==3.1.3 wagtailsvg==0.0.14 whitenoise==5.2.* django-health-check==3.16.5