Skip to content

Improve create handling of a frontmatter page_id #18

Description

@willkg

create currently, for a file that already has a page_id:

  • if the page exists → errors "a page already exists at this page_id" (no link);
  • if the id doesn't resolve → silently creates a new page and overwrites the id on write-back.

Improve both:

  • page exists → include the URL of the existing page in the error;
  • page_id present but bad/nonexistent → error that the id is bad and should be removed, rather than silently creating a new page.

(From the old todo.md.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions