hedgeagent/1.12.0 #1
@@ -6,6 +6,7 @@
|
||||
|
||||
- Added external link whitelist setting (`externalLinkWhitelist` in config.json or `CMD_EXTERNAL_LINK_WHITELIST`) to skip warning page for certain domains
|
||||
- Added external link warning setting (`externalLinkWarning` in config.json or `CMD_EXTERNAL_LINK_WARNING`) to disable the external link warning page entirely
|
||||
- Fixed external link warning for subpath instances
|
||||
- Enabled `.webp` for file uploads (for all backends but `imgur`, since it does not support it)
|
||||
|
||||
### Bugfixes
|
||||
|
||||
@@ -624,7 +624,8 @@ export function rewriteExternalLinks (view) {
|
||||
return
|
||||
}
|
||||
const noteURL = window.location.pathname.split('/').pop()
|
||||
anchor.attr('href', `${window.location.origin}/_link?url=${encodeURIComponent(parsed.href)}¬e=${noteURL}`)
|
||||
const urlPath = window.urlpath ? `/${window.urlpath}` : ''
|
||||
anchor.attr('href', `${window.location.origin}${urlPath}/_link?url=${encodeURIComponent(parsed.href)}¬e=${noteURL}`)
|
||||
})
|
||||
}
|
||||
window.rewriteExternalLinks = rewriteExternalLinks
|
||||
|
||||
Reference in New Issue
Block a user