Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
 into dev
  • Loading branch information
joaojmendes committed Apr 17, 2024
2 parents f550b62 + dd6938f commit 7dfd1ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/GeneralHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,5 +356,5 @@ export const toRelativeUrl = (absoluteUrl: string): string => {
return '';
}

return absoluteUrl.replace(/^(?:\/\/|[^/]+)*\//, '/');
return new URL(absoluteUrl).pathname;
};

0 comments on commit 7dfd1ce

Please sign in to comment.