From 6068b37b97f2f60f3f75a89fcfa7eceaad4e9411 Mon Sep 17 00:00:00 2001 From: Remi Blom-Ohlsen Date: Thu, 2 May 2024 09:28:13 +0200 Subject: [PATCH] Fix for #1520 [skip-ci] --- .../src/extensions/ideaRegistration/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SharePointFramework/PortfolioExtensions/src/extensions/ideaRegistration/index.tsx b/SharePointFramework/PortfolioExtensions/src/extensions/ideaRegistration/index.tsx index b77a36d1c..374efa52f 100644 --- a/SharePointFramework/PortfolioExtensions/src/extensions/ideaRegistration/index.tsx +++ b/SharePointFramework/PortfolioExtensions/src/extensions/ideaRegistration/index.tsx @@ -250,9 +250,9 @@ export default class IdeaRegistrationCommand extends BaseListViewCommandSet * @param rowTitle Title of the row in the registration list */ private _updateProcessingList = async (rowId: number, rowTitle: string): Promise => { - 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,