Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds changes to redirects #1554

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions home/static/js/global/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.</h4>')

$('#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.<br><strong>Cons:</strong> 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. <br><strong>Pros:</strong> 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');
}

});
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down