Skip to content

Commit

Permalink
Fix website link error.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Aug 3, 2019
1 parent 63d14f4 commit a7d6017
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
this.root_path = (function () {
var elm_path = $$('current_path');
var url = window.location.origin + window.location.pathname;
return elm_path ? url.replace(/\/(c\/)?\w+\.html/, '').replace(/\/$/, '') : '';
return elm_path ? url.replace(/\/(c\/)?(\w|-)+\.html/, '').replace(/\/$/, '') : '';
})();

this.query = ''; //
Expand Down

0 comments on commit a7d6017

Please sign in to comment.