ArborLodgePDX / arbor-lodge-neighborhood-website

alnapdx.vercel.app
1 stars 0 forks source link

Add vanity url option to content posts in Contentful #8

Open kmic opened 1 year ago

kmic commented 1 year ago

Currently the URLs are based on the title of the content update in Contentful. This typically makes for very long URLs, like https://arborlodgepdx.org/post/5GzUztl3MuWtVq2jL95o8z/04/28/2023/Arbor-Lodge-Park-Dog-Off-Leash-Area-Renovation-Notice. It would be great to be able to either override the URL by entering a value into a field in Contentful, or to setup a redirect so we get a nicer vanity URL to share.

dustatron commented 1 year ago

I will need to look into this a little more. I added a field at the bottom of an update type. It does allow for swapping out the last section but I feel like it would be better to have /post/renovation-notice It is probably doable but I bet we will need to change some config to allow for this kind of look of the content lookup.