configure deploy preview path when the file name doesn't match the page title
See original GitHub issueThe deploy preview link on Netlify CMS opens the home page of the preview, and a user has to navigate to the topic they changed.
I’ve read on Netlify CMS docs that you can configure the preview paths to a specific page.
The instructions assume that you use a slug, which uses a field value eg. {{title}} as the identifier of the collections.
The way the slug works is by compiling the identifier, eg. “My New Post!” to “my-new-post”.
In Axway open docs, though, we create specific names to the *.md files, and the names don’t match the heading/title of the pages, eg. the title of a file called apimgr_concepts.md
is ‘API management concepts’
Therefore, I didn’t find a way to configure my collections to redirect to an specific topic, and I don’t even know if this is possible in my case.
Is your feature request related to a problem? Please describe. It’s a bad user experience to send the user to the home page of the docs, and make them to navigate to the topic that they’ve updated so they can see the preview. It can be challenging, confusing, and frustrating for the user to find the topic.
Describe the solution you’d like I’d like to be able to redirect the deploy preview links to the specific topic/page that was changed by a user.
Describe alternatives you’ve considered /
I’m looking forward to your help. Thanks Andrea
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
#3055 will introduce a {{filename}} variable, that’s likely the only way to address this (opened that issue while working on Axway and Hugo docs, both of which have content filenames that are not derived from the content frontmatter, and that are used in output paths).
Sent with GitHawk
Hi @andreamussap, can you share your
config.yml
? Are you using a folder type collection or a files based collection?Never mind, found it https://github.com/Axway/axway-open-docs/blob/master/static/admin/config.yml