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

Dynamic Routing: automatically redirect post and page resource #9791

Closed
kirrg001 opened this issue Aug 16, 2018 · 0 comments · Fixed by #9828
Closed

Dynamic Routing: automatically redirect post and page resource #9791

kirrg001 opened this issue Aug 16, 2018 · 0 comments · Fixed by #9828
Assignees
Labels
bug [triage] something behaving unexpectedly server / core Issues relating to the server or core of Ghost

Comments

@kirrg001
Copy link
Contributor

There is currently a bug in Dynamic Routing Beta.

  1. Define:
routes:
  /about/team/:
    data: post.team
 
  1. The redirect from /team/ to /about/team does not happen.

Ghost: master

@kirrg001 kirrg001 added bug [triage] something behaving unexpectedly server / core Issues relating to the server or core of Ghost labels Aug 16, 2018
kirrg001 added a commit to kirrg001/Ghost that referenced this issue Nov 12, 2018
closes TryGhost#9791

- we only made use of the redirect middleware, who detects if a redirect should happen, for taxonomies (tags, authors)
- `data: page.team` will now redirect too
- `data: post.team` will now redirect too
- you can disable the redirect using the longform
kirrg001 added a commit that referenced this issue Dec 3, 2018
#9828)

closes #9791

- we only made use of the redirect middleware, who detects if a redirect should happen, for taxonomies (tags, authors)
- `data: page.team` will now redirect too
- `data: post.team` will now redirect too
- you can disable the redirect using the long form
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug [triage] something behaving unexpectedly server / core Issues relating to the server or core of Ghost
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants