Commit 2a0b999 1 parent c88406e commit 2a0b999 Copy full SHA for 2a0b999
File tree 1 file changed +4
-3
lines changed
templates/default/fulldoc/html
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 5
5
< title > <%= options . title %> </ title >
6
6
</ head >
7
7
< script type ="text/javascript ">
8
+ var mainUrl = '<%= url_for_main %> '
8
9
try {
9
10
var match = decodeURIComponent ( window . location . hash ) . match ( / ^ # ! ( .+ ) / ) ;
10
- var name = match ? match [ 1 ] : ' <%= url_for_main %> ' ;
11
+ var name = match ? match [ 1 ] : mainUrl ;
11
12
var url = new URL ( name , location . href ) ;
12
- window . top . location . replace ( url . origin === location . origin ? name : ' <%= url_for_main %> ' ) ;
13
+ window . top . location . replace ( url . origin === location . origin ? name : mainUrl ) ;
13
14
} catch ( e ) {
14
- window . top . location . replace ( ' <%= url_for_main %> ' ) ;
15
+ window . top . location . replace ( mainUrl ) ;
15
16
}
16
17
</ script >
17
18
< noscript >
You can’t perform that action at this time.
0 commit comments