mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-31 13:47:02 +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
|
<ListItemText
|
||||||
primary={
|
primary={
|
||||||
<Link
|
<Link
|
||||||
to={`/applications/${appName}`}
|
to={`/applications/${encodeURIComponent(
|
||||||
|
appName
|
||||||
|
)}`}
|
||||||
className={[
|
className={[
|
||||||
styles.listLink,
|
styles.listLink,
|
||||||
styles.truncate,
|
styles.truncate,
|
||||||
|
@ -28,7 +28,7 @@ const useApplicationsApi = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const deleteApplication = async (appName: string) => {
|
const deleteApplication = async (appName: string) => {
|
||||||
const path = `${URI}/${appName}`;
|
const path = `${URI}/${encodeURIComponent(appName)}`;
|
||||||
const req = createRequest(path, { method: 'DELETE' });
|
const req = createRequest(path, { method: 'DELETE' });
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user