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 9ed387a commit fb0b753Copy full SHA for fb0b753
lib/link.js
@@ -129,8 +129,8 @@ export default class Link extends Component {
129
function isLocal (href) {
130
const url = parse(href, false, true)
131
const origin = parse(getLocationOrigin(), false, true)
132
- return (!url.host || !url.hostname) ||
133
- (origin.host === url.host || origin.hostname === url.hostname)
+ return !url.host ||
+ (url.protocol === origin.protocol && url.host === origin.host)
134
}
135
136
const warnLink = execOnce(warn)
0 commit comments