Skip to content

Commit

Permalink
Merge pull request #1159 from antonio-ortega/senna-LPS-192874
Browse files Browse the repository at this point in the history
fix(senna): Modify URI generation to properly handle link to emails
  • Loading branch information
antonio-ortega authored Aug 10, 2023
2 parents c655ac9 + c256469 commit 8271bd2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion maintenance/projects/senna/src/app/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,9 @@ class App extends EventEmitter {
* @return {boolean}
*/
canNavigate(url) {
const uri = utils.isWebUri(url);
const uri = url.startsWith('/')
? new URL(url, window.location.origin)
: new URL(url);

if (!uri) {
return false;
Expand Down

0 comments on commit 8271bd2

Please sign in to comment.