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

404 if trailing slash when fetching Hierarchical #164

Open
donaldgray opened this issue Nov 19, 2024 · 1 comment
Open

404 if trailing slash when fetching Hierarchical #164

donaldgray opened this issue Nov 19, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@donaldgray
Copy link
Member

Doesn't happen for Root element but does for children. e.g.

  • GET /{customer} - returns 200 + root
  • GET /{customer}/ - returns 200 + root
  • GET /{customer}/child-collection - returns 200 + collection
  • GET /{customer}/child-collection/ - returns 404
  • GET /{customer}/child-manifest - returns 200 + manifest
  • GET /{customer}/child-manifest/ - returns 404
@donaldgray donaldgray added the bug Something isn't working label Nov 19, 2024
@donaldgray
Copy link
Member Author

We should return a redirect when we encounter the trailing slash, rather than return the payload. e.g. /99/child/ should redirect to /99/child

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

2 participants