Skip to content

Commit 7750361

Browse files
committed
fix discus hash url
1 parent 62f987c commit 7750361

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/ditto.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ function show_loading() {
194194

195195
function router() {
196196

197-
var path = location.hash.replace("#", "./");
197+
var path = location.hash.replace(/#([^#]*)(#.*)?/, './$1');
198198

199199
if (ditto.save_progress && store.get('menu-progress') !== location.hash) {
200200
store.set('menu-progress', location.hash);

0 commit comments

Comments
 (0)