Skip to content

Commit

Permalink
Updated MDI link. Opening link in the same tab will now allow to go b…
Browse files Browse the repository at this point in the history
…ack to the previous page
  • Loading branch information
pawelmalak committed Jul 23, 2023
1 parent 97884a5 commit 7479ffb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/src/components/Apps/AppForm/AppForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion client/src/utility/redirectUrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 7479ffb

Please sign in to comment.