js: Rewrite #renew links to the Supporter page.
#renewal is the correct hash to use.
This commit is contained in:
parent
02eab9cd69
commit
492de3eab3
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue