Merge pull request #3136 from abpframework/maliming/docs-patch1

Fix unicode anchor links.
pull/3178/head
Halil İbrahim Kalkan 5 years ago committed by GitHub
commit acf645e587
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -47,7 +47,7 @@
return;
}
var $targetElement = $(hash);
var $targetElement = $(decodeURIComponent(hash));
$targetElement = $targetElement.length ? $targetElement : $('[name=' + this.hash.slice(1) + ']');
@ -77,7 +77,7 @@
event.preventDefault();
var hash = this.hash;
$('html, body').animate({
scrollTop: $(hash).offset().top
scrollTop: $(decodeURIComponent(hash)).offset().top
}, 500, function () {
window.location.hash = hash;
});

Loading…
Cancel
Save