js: Rewrite #renew links to the Supporter page.

#renewal is the correct hash to use.
This commit is contained in:
Brett Smith 2016-12-29 10:33:22 -05:00
parent 02eab9cd69
commit 492de3eab3

View file

@ -12,6 +12,11 @@ var supportTypeSelector = function(supportTypeHash) {
var $window = $(window);
$window.load(function() {
/* We've sometimes published links that say #renew instead of #renewal.
Rewrite that to work as intended. */
if (window.location.hash === "#renew") {
window.location.hash = "#renewal";
}
var $selectorLink = supportTypeSelector(window.location.hash);
if ($selectorLink.length > 0) {
$window.scrollTop($selectorLink.offset().top);