You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if I understand this correctly. If you want to map URLs to other URLs, you'll probably need to store the mappings somewhere and then create a local plugin that will use those mappings. But why don't you just create a Slug field in Notion to refer to every page? You could collect edges related to current page and use their Slug value when you compose a link.
In a Notion page, if you link to another page also in Notion, the linked page will be rendered as:
where
1a2b3c4d
is the id of the linked Notion page.If you use pretty URLs, then how to you map the link above to the pretty URL?
I haven't tested out this idea, but it seems I'll need to:
onCreateNode
, create newslug
field for each node.onCreatePage
, query themarkdownString
value of the page.slug
value of that node.markdownString
, replacing the original relative URL with the new one that includes pretty url.createPage
.Can anyone offer any guidance?
The text was updated successfully, but these errors were encountered: