mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-13 16:14:07 -08:00
commit fix
This commit is contained in:
parent
a46d22d510
commit
8fac0928ca
|
@ -926,7 +926,7 @@ export function getPageId(this: IExecuteFunctions, i: number) {
|
||||||
pageId = page.value;
|
pageId = page.value;
|
||||||
} else if (page.value.includes('p=')) {
|
} else if (page.value.includes('p=')) {
|
||||||
// e.g https://www.notion.so/xxxxx?v=xxxxx&p=xxxxx&pm=s
|
// e.g https://www.notion.so/xxxxx?v=xxxxx&p=xxxxx&pm=s
|
||||||
pageId = new URLSearchParams(page.value).get('p')
|
pageId = new URLSearchParams(page.value).get('p') || '';
|
||||||
} else {
|
} else {
|
||||||
// e.g https://www.notion.so/page_name-xxxxx
|
// e.g https://www.notion.so/page_name-xxxxx
|
||||||
pageId = page.value.match(databasePageUrlValidationRegexp)?.[1] || '';
|
pageId = page.value.match(databasePageUrlValidationRegexp)?.[1] || '';
|
||||||
|
|
Loading…
Reference in a new issue