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 1b4a441 commit 7d5d952Copy full SHA for 7d5d952
htmlpreview.js
@@ -201,7 +201,7 @@
201
// Check if it's an anchor
202
if (href.indexOf('#') > 0) {
203
// Rewrite links to this document only
204
- if ((a[i].protocol + '//' + a[i].hostname + a[i].pathname) == rawFileUrl) {
+ if ((a[i].origin + a[i].pathname) == rawFileUrl) {
205
// Then rewrite URL with support for empty anchor
206
a[i].href
207
= location.origin + location.pathname + location.search
0 commit comments