mirror of
https://github.com/pawelmalak/flame.git
synced 2026-02-28 01:13:11 +08:00
Updated MDI link. Opening link in the same tab will now allow to go back to the previous page
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user