mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-26 13:48:33 +02:00
fix: url encode application name in links (#2121)
* fix: url encode application name in links This ensures that we url encode application names for our links.
This commit is contained in:
parent
5141e77bce
commit
ba8bdc585a
@ -38,7 +38,9 @@ export const AppsLinkList = ({ apps }) => (
|
||||
<ListItemText
|
||||
primary={
|
||||
<Link
|
||||
to={`/applications/${appName}`}
|
||||
to={`/applications/${encodeURIComponent(
|
||||
appName
|
||||
)}`}
|
||||
className={[
|
||||
styles.listLink,
|
||||
styles.truncate,
|
||||
|
@ -28,7 +28,7 @@ const useApplicationsApi = () => {
|
||||
};
|
||||
|
||||
const deleteApplication = async (appName: string) => {
|
||||
const path = `${URI}/${appName}`;
|
||||
const path = `${URI}/${encodeURIComponent(appName)}`;
|
||||
const req = createRequest(path, { method: 'DELETE' });
|
||||
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user