We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c88406e commit 2a0b999Copy full SHA for 2a0b999
templates/default/fulldoc/html/frames.erb
@@ -5,13 +5,14 @@
5
<title><%= options.title %></title>
6
</head>
7
<script type="text/javascript">
8
+var mainUrl = '<%= url_for_main %>'
9
try {
10
var match = decodeURIComponent(window.location.hash).match(/^#!(.+)/);
- var name = match ? match[1] : '<%= url_for_main %>';
11
+ var name = match ? match[1] : mainUrl;
12
var url = new URL(name, location.href);
- window.top.location.replace(url.origin === location.origin ? name : '<%= url_for_main %>');
13
+ window.top.location.replace(url.origin === location.origin ? name : mainUrl);
14
} catch (e) {
- window.top.location.replace('<%= url_for_main %>');
15
+ window.top.location.replace(mainUrl);
16
}
17
</script>
18
<noscript>
0 commit comments