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

Fix links in API about pages with subfolder #476

Conversation

josecelano
Copy link
Member

When the API is istalled using a subfolder links don't work.

For exmaple:

https://index.torrust-demo.com/api/

License links goes to:

https://index.torrust-demo.com/v1/about/license

instead of:

https://index.torrust-demo.com/api/v1/about/license

This change uses relative URLs and also an explicit redirecting to the abnout pages, intead of showing the same content for other pages like

When the API is istalled using a subfolder links don't work.

For exmaple:

https://index.torrust-demo.com/api/

License links goes to:

https://index.torrust-demo.com/v1/about/license

instead of:

https://index.torrust-demo.com/api/v1/about/license

This change uses relative URLs and also an explicit redirecting to the
abnout pages, intead of showing the same content for other pages like

- https://index.torrust-demo.com/api/
- https://index.torrust-demo.com/api/v1
- https://index.torrust-demo.com/api/v1/about/
@josecelano josecelano added this to the v3.0.0 milestone Feb 8, 2024
@josecelano josecelano added the Bug Incorrect Behavior label Feb 8, 2024
@josecelano josecelano linked an issue Feb 8, 2024 that may be closed by this pull request
@josecelano
Copy link
Member Author

ACK 90a2035

@josecelano josecelano merged commit 7c3f798 into torrust:develop Feb 8, 2024
3 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Incorrect Behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

API license link should be relative
1 participant