question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

configure deploy preview path when the file name doesn't match the page title

See original GitHub issue

The 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:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
erquhartcommented, Jan 14, 2020

#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

1reaction
erezrokahcommented, Jan 14, 2020

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Site deploys overview - Netlify Docs
Production branch: the Git branch that Netlify uses to build and deploy changes to your site's main URL, such as www.yourcustomdomain.com or yoursitename....
Read more >
when trying to access a site deployed on Netlify - Stack Overflow
If you see "Not Found" error while directly browsing to a specific path, For eg: https://yourdomain.com/something , this might be helpfull ...
Read more >
You receive error messages when opening an Office document
Microsoft Excel: The total length of the path and the file name, ... your device doesn't know what program to open to view...
Read more >
Dealing with files - Learn web development | MDN
A website consists of many files: text content, code, stylesheets, media content ... the file path we'd need is images/your-image-filename .
Read more >
Configure Hosting behavior | Firebase Hosting - Google
You can serve a custom 404 Not Found error when a user tries to access a page that doesn't exist. Create a new...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found