Skip to content

Notion URL changes result in duplicate pages and failed note syncing #823

@dvanoni

Description

@dvanoni

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions