diff options
-rw-r--r-- | src/compiler/scala/tools/nsc/doc/html/resource/lib/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/doc/html/resource/lib/index.js b/src/compiler/scala/tools/nsc/doc/html/resource/lib/index.js index 96689ae701..38dd248c29 100644 --- a/src/compiler/scala/tools/nsc/doc/html/resource/lib/index.js +++ b/src/compiler/scala/tools/nsc/doc/html/resource/lib/index.js @@ -70,7 +70,7 @@ function setFrameSrcFromUrlFragment() { var loc = fragment.split("@")[0].replace(/\./g, "/"); if(loc.indexOf(".html") < 0) loc += ".html"; if(fragment.indexOf('@') > 0) loc += ("#" + fragment.split("@", 2)[1]); - frames["template"].location.replace(loc); + frames["template"].location.replace(location.protocol + loc); } else frames["template"].location.replace("package.html"); |