Skip to content

Commit

Permalink
Fix mailto in ref (Doenet#1971)
Browse files Browse the repository at this point in the history
  • Loading branch information
ernzher authored Mar 7, 2023
1 parent e07efad commit 4ad07cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Viewer/PageViewer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1173,7 +1173,7 @@ export function getURLFromRef({
}
} else if (givenUri) {
url = givenUri;
if (url.substring(0, 8) === "https://" || url.substring(0, 7) === "http://") {
if (url.substring(0, 8) === "https://" || url.substring(0, 7) === "http://" || url.substring(0, 7) === "mailto:") {
haveValidTarget = true;
externalUri = true;
}
Expand Down

0 comments on commit 4ad07cf

Please sign in to comment.