Skip to content

Commit a7d6017

Browse files
committed
Fix website link error.
1 parent 63d14f4 commit a7d6017

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

template/js/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
this.root_path = (function () {
1212
var elm_path = $$('current_path');
1313
var url = window.location.origin + window.location.pathname;
14-
return elm_path ? url.replace(/\/(c\/)?\w+\.html/, '').replace(/\/$/, '') : '';
14+
return elm_path ? url.replace(/\/(c\/)?(\w|-)+\.html/, '').replace(/\/$/, '') : '';
1515
})();
1616

1717
this.query = ''; //

0 commit comments

Comments
 (0)