Skip to content
Snippets Groups Projects
Commit 0fbc5044 authored by Iain Bryson's avatar Iain Bryson
Browse files

Allow invalid (i.e. straight file names) links to be interpreted as eNotes.

parent c0b2dcd4
Branches
No related tags found
No related merge requests found
......@@ -792,6 +792,10 @@ var LinkAnnotation = (function LinkAnnotationClosure() {
if (url) {
if (isValidUrl(url, /* allowRelative = */ false)) {
data.url = tryConvertUrlEncoding(url);
} else {
warn("not a valid url! " + url);
url = url.replace(/(.*)\.pdf/, '$1');
data.url = '/enotes/' + url;
}
}
if (dest) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment