-
-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
Hi @muety
I set ANCHR_PUBLIC_URL="http://127.0.0.1:8080/anchr" to define my base URL root, but I'm encountering two issues:
-
Response URL Issue: When making requests to
http://127.0.0.1:8080/anchr, the response URL redirects tohttp://127.0.0.1:8080/, which causes routing errors. -
API and Resource Path Issue: When shortening links or uploading images, the requests go to
http://127.0.0.1:8080/apiinstead of the expectedhttp://127.0.0.1:8080/anchr/api. The responses also seem incorrect.
Expected Behavior
- Responses should be directed to
http://127.0.0.1:8080/anchr. - Requests for resources like APIs and uploaded images should follow the base URL and go to
http://127.0.0.1:8080/anchr/api.
Actual Behavior
- Responses are directed to
http://127.0.0.1:8080/. - Resource requests ignore the base URL path, going to
http://127.0.0.1:8080/apiinstead ofhttp://127.0.0.1:8080/anchr/api.
Steps to Reproduce
- Set
ANCHR_PUBLIC_URL="http://127.0.0.1:8080/anchr". - Attempt to shorten a link or upload an image.
- Observe the response URL and the API/resource request paths.
Possible Solution
- Adjust the routing to ensure the response and API/resource requests respect the base URL path.