mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-02 07:01:30 -08:00
Update packages/nodes-base/nodes/Notion/shared/GenericFunctions.ts
Co-authored-by: Elias Meire <elias@meire.dev>
This commit is contained in:
parent
1adb83e902
commit
b033dadfd8
|
@ -926,7 +926,7 @@ export function getPageId(this: IExecuteFunctions, i: number) {
|
|||
pageId = page.value;
|
||||
} else if (page.value.includes('p=')) {
|
||||
// e.g https://www.notion.so/xxxxx?v=xxxxx&p=xxxxx&pm=s
|
||||
pageId = page.value.split('p=')[1].split('&')[0];
|
||||
pageId = new URLSearchParams(page.value).get('p')
|
||||
} else {
|
||||
// e.g https://www.notion.so/page_name-xxxxx
|
||||
pageId = page.value.match(databasePageUrlValidationRegexp)?.[1] || '';
|
||||
|
|
Loading…
Reference in a new issue