Skip to content

Commit

Permalink
Encoded detemplatized portal urls in storymaps #1299
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeTschudi committed Nov 20, 2023
1 parent 5ebf011 commit 0724b69
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/storymap/src/helpers/create-storymap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ export function createStoryMap(
// that we have to generate from the passed in model
const resources: any[] = [];

// The data section has been de-templatized. Some entries need to be encoded URLs, so we'll find and encode them.
model.data = JSON.parse(JSON.stringify(model.data).replace(/portalUrl=https:\/\//g, "portalUrl=https%3A%2F%2F"));

// For unknown reasons we can not seem to spy on createItemInFolder
// so we will create-then-move for now
const createOptions: ICreateItemOptions = {
Expand Down

0 comments on commit 0724b69

Please sign in to comment.