Issue summary
Notion changed the domain for URLs returned by their API from www.notion.so to app.notion.com. This breaks the logic used for determining Notion URLs:
|
const PAGE_URL_REGEX = new RegExp( |
|
`^(?:${APP_URL_PROTOCOL}|${WEB_URL_PROTOCOL})//www.notion.so/.*([0-9a-f]{32})$`, |
|
); |
Because of this, existing Notion pages are not correctly recognized, resulting in the following issues:
- New (duplicate) pages are created instead of updating existing pages.
- Notes cannot sync because their parent page is not recognized.
Additional context
Issue reported by @AblazeBoat1 here:
Issue summary
Notion changed the domain for URLs returned by their API from
www.notion.sotoapp.notion.com. This breaks the logic used for determining Notion URLs:notero/src/content/sync/notion-utils/url.ts
Lines 5 to 7 in da2befb
Because of this, existing Notion pages are not correctly recognized, resulting in the following issues:
Additional context
Issue reported by @AblazeBoat1 here: