This commit is contained in:
Travis Fischer
2022-04-06 10:47:25 -04:00
parent b1748d1c9d
commit d1f0e4e5c0

View File

@@ -70,6 +70,8 @@ The mapping of Notion ID to slugified page titles is done automatically as part
See [mapPageUrl](./lib/map-page-url.ts) and [getCanonicalPageId](https://github.com/NotionX/react-notion-x/blob/master/packages/notion-utils/src/get-canonical-page-id.ts) for more details.
You can override the default slug generation on a per-page basis by adding a `Slug` text property to your database. Any page which has a `Slug` property will use that as its slug.
NOTE: if you have multiple pages in your workspace with the same slugified name, the app will throw an error letting you know that there are duplicate URL pathnames.
## Preview Images