Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preview link on CMS front end does not account for permalink override #282

Open
jhung opened this issue Jan 19, 2022 · 0 comments
Open

Preview link on CMS front end does not account for permalink override #282

jhung opened this issue Jan 19, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@jhung
Copy link
Member

jhung commented Jan 19, 2022

Describe the bug

When using the CMS front end to create a new Page, the preview link is incorrect if a permalink is specified.

To Reproduce

Steps to reproduce the behavior:

  1. Go to the IDRC site admin and create a new Page.
  2. Give it a title (i.e. 'Intelligent User Interfaces for Virtual Healthcare').
  3. In the Permalink field, enter a value (i.e. '/reducing-healthcare-barriers/').
  4. Publish
  5. Select the 'View Live' link - notice the 404 not found error.

Expected behavior

If a permalink is specified, the preview link should use that URL and not give a 404.

Screenshots

Preview seen using the "View Preview" link from the Netlify CMS front end:
image

Preview as seen from Github deploy preview. Notice the difference in URL:
image

@jhung jhung added the bug Something isn't working label Jan 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant