We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 683713f commit 17c1c49Copy full SHA for 17c1c49
template/js/index.js
@@ -11,7 +11,7 @@
11
this.root_path = (function(){
12
var elm_path = $$('current_path');
13
var url = window.location.origin+window.location.pathname;
14
- return elm_path ? url.replace(/\/c\/\w+\.html/, '').replace(/\/$/,''):'';
+ return elm_path ? url.replace(/\/(c\/)?\w+\.html/, '').replace(/\/$/, '') : '';
15
})();
16
17
this.query = ''; //
0 commit comments