You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-15 23:00:36 +02:00
Clipper: Fixes #1622: Import named anchors from clipped pages
This commit is contained in:
@ -25,6 +25,7 @@ urlUtils.prependBaseUrl = function(url, baseUrl) {
|
||||
|
||||
if (!url) url = '';
|
||||
if (!baseUrl) return url;
|
||||
if (url.indexOf('#') === 0) return url; // Don't prepend if it's a local anchor
|
||||
if (urlUtils.urlProtocol(url)) return url; // Don't prepend the base URL if the URL already has a scheme
|
||||
|
||||
if (url.length >= 2 && url.indexOf('//') === 0) { // If it starts with // it's a protcol-relative URL
|
||||
|
Reference in New Issue
Block a user