Skip to content

Commit 51d1918

Browse files
danielhenrymantillajyn514
authored andcommitted
Do not duplicate # when using the y permalink shortcut
Given the issue `#1609`, it looks like `document.location.hash` already bundles `#`?
1 parent 90c5e08 commit 51d1918

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

static/menu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@
239239
if (ev.key == "y") {
240240
let permalink = document.getElementById("permalink");
241241
if (document.location.hash != "") {
242-
permalink.href += "#" + document.location.hash;
242+
permalink.href += document.location.hash;
243243
}
244244
history.replaceState({}, null, permalink.href);
245245
}

0 commit comments

Comments
 (0)