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 5b1641c commit 683713fCopy full SHA for 683713f
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(elm_path.value,'').replace(/\/$/,''):'';
+ return elm_path ? url.replace(/\/c\/\w+\.html/, '').replace(/\/$/,''):'';
15
})();
16
17
this.query = ''; //
0 commit comments