From d1f0e4e5c04cfd417f7fec16acf1f9ef36115892 Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Wed, 6 Apr 2022 10:47:25 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- readme.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/readme.md b/readme.md index ba15410..7d627bd 100644 --- a/readme.md +++ b/readme.md @@ -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