Skip to content

Commit

Permalink
fix: fixed url encoded link template (#9792)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrii Chubatiuk <andrew.chubatiuk@motional.com>
Co-authored-by: Andrii Chubatiuk <andrew.chubatiuk@motional.com>
  • Loading branch information
AndrewChubatiuk and Andrii Chubatiuk committed Oct 13, 2022
1 parent ebae212 commit faa0294
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/app/shared/components/links.tsx
Expand Up @@ -47,7 +47,7 @@ export const Links = ({scope, object, button}: {scope: string; object: {metadata
}, []);

const formatUrl = (url: string) => {
return ProcessURL(url, object);
return encodeURI(ProcessURL(decodeURI(url), object));
};

const openLink = (url: string) => {
Expand Down

0 comments on commit faa0294

Please sign in to comment.