Skip to content

Commit

Permalink
fix(senna): Modify URI generation to properly handle link to emails
Browse files Browse the repository at this point in the history
  • Loading branch information
antonio-ortega committed Aug 10, 2023
1 parent c655ac9 commit c256469
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 c256469

Please sign in to comment.