We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d197a3 commit d78fc39Copy full SHA for d78fc39
templates/default/fulldoc/html/frames.erb
@@ -5,10 +5,10 @@
5
<title><%= options.title %></title>
6
</head>
7
<script type="text/javascript">
8
- var match = unescape(window.location.hash).match(/^#!(.+)/);
+ var match = decodeURIComponent(window.location.hash).match(/^#!(.+)/);
9
var name = match ? match[1] : '<%= url_for_main %>';
10
- name = name.replace(/^(\w+):\/\//, '').replace(/^\/\//, '');
11
- window.top.location = name;
+ name = name.replace(/^((\w*):)?[\/\\]*/gm, '').trim();
+ window.top.location.replace(name)
12
</script>
13
<noscript>
14
<h1>Oops!</h1>
0 commit comments