Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Support running under subpath #78

@HESOYAM-abuser

Description

@HESOYAM-abuser

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:

  1. Response URL Issue: When making requests to http://127.0.0.1:8080/anchr, the response URL redirects to http://127.0.0.1:8080/, which causes routing errors.

  2. API and Resource Path Issue: When shortening links or uploading images, the requests go to http://127.0.0.1:8080/api instead of the expected http://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/api instead of http://127.0.0.1:8080/anchr/api.

Steps to Reproduce

  1. Set ANCHR_PUBLIC_URL="http://127.0.0.1:8080/anchr".
  2. Attempt to shorten a link or upload an image.
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions