Updated MDI link. Opening link in the same tab will now allow to go back to the previous page
This commit is contained in:
parent
97884a5293
commit
7479ffb134
2 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue