We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb261f9 commit be81545Copy full SHA for be81545
2 files changed
src/Components/Favorites/ProgramCard.jsx
@@ -62,7 +62,7 @@ const ProgramCard = ({ program }) => {
62
}}
63
onClick={() =>
64
navigate(
65
- `/favorites/${program.ProgramID}${window.location.search}`
+ `/favorites/${encodeURIComponent(program.ProgramID)}${window.location.search}`
66
)
67
}
68
>
src/Components/Modify/Program/AddModifyProgram.jsx
@@ -47,7 +47,7 @@ export async function action({request}) {
47
48
};
49
await addModifyProgram(requestBody);
50
- return redirect(`/programs/${ProgramID}`)
+ return redirect(`/programs/${encodeURIComponent(ProgramID)}`)
51
52
53
export default function AddModifyProgram({type}) {
0 commit comments