[CORL-661] Encode Story ID (#2614)

* fix: encode story ID's for URL

* fix: use shared method
This commit is contained in:
Wyatt Johnson
2019-10-02 16:21:49 +00:00
committed by GitHub
parent fa3d442b36
commit 3a4eae87ad
2 changed files with 3 additions and 2 deletions
@@ -5,6 +5,6 @@ export default function getModerationLink(
storyID?: string | null
) {
const queuePart = queue && queue !== "default" ? `/${queue}` : "";
const storyPart = storyID ? `/${storyID}` : "";
const storyPart = storyID ? `/${encodeURIComponent(storyID)}` : "";
return `${basePath}${queuePart}${storyPart}`;
}