Updated MDI link. Opening link in the same tab will now allow to go back to the previous page

This commit is contained in:
Paweł Malak 2023-07-23 10:59:37 +02:00
parent 97884a5293
commit 7479ffb134
2 changed files with 2 additions and 2 deletions

View file

@ -165,7 +165,7 @@ export const AppForm = ({ modalHandler }: Props): JSX.Element => {
/>
<span>
Use icon name from MDI or pass a valid URL.
<a href="https://materialdesignicons.com/" target="blank">
<a href="https://pictogrammers.com/library/mdi/" target="blank">
{' '}
Click here for reference
</a>

View file

@ -4,7 +4,7 @@ export const redirectUrl = (url: string, sameTab: boolean) => {
const parsedUrl = urlParser(url)[1];
if (sameTab) {
document.location.replace(parsedUrl);
document.location.assign(parsedUrl);
} else {
window.open(parsedUrl);
}