Skip to content

Commit

Permalink
Fix for #1393 [skip-ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi749 committed Jan 25, 2024
1 parent 450df88 commit 335f48a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,7 @@ export default class IdeaRegistrationCommand extends BaseListViewCommandSet<any>
*/
private async _createSitePage(row: RowAccessor) {
const title: string = row.getValueByName('Title')
const page = await this._sp.web.addClientsidePage(`KUR-${title}`, title, 'Article')

const page = await this._sp.web.addClientsidePage(`KUR-${title.replace(/[^a-zA-Z0-9-_]/g, '') }`, title, 'Article')
const reporter = row.getValueByName('GtIdeaReporter')[0] || ''

page.layoutType = 'NoImage'
Expand Down

0 comments on commit 335f48a

Please sign in to comment.