Skip to content

Commit

Permalink
Fix for #1520 [skip-ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi749 committed May 2, 2024
1 parent 538edb9 commit 6068b37
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,9 @@ export default class IdeaRegistrationCommand extends BaseListViewCommandSet<any>
* @param rowTitle Title of the row in the registration list
*/
private _updateProcessingList = async (rowId: number, rowTitle: string): Promise<void> => {
const url = rowTitle.replace(/ /g, '-').replace(/é/g, 'e')
const urlFriendlyTitle = rowTitle.replace(/é/g, 'e').replace(/[^a-zA-Z0-9-_ÆØÅæøå ]/g, '')
const baseUrl = this.context.pageContext.web.absoluteUrl
const ideaUrl = `${baseUrl}/SitePages/KUR-${url}.aspx`
const ideaUrl = `${baseUrl}/SitePages/KUR-${urlFriendlyTitle}.aspx`

await this._sp.web.lists.getByTitle(this._config.processingList).items.add({
Title: rowTitle,
Expand Down

0 comments on commit 6068b37

Please sign in to comment.