Skip to content

fix: normalize trailing slash in root URL (#2361) - #29

Open
test-codeop wants to merge 2 commits into
fix-workflowfrom
uncover-agent-2511260044
Open

test-codeop wants to merge 2 commits into
fix-workflowfrom
uncover-agent-2511260044

Conversation

@test-codeop

Copy link
Copy Markdown
Collaborator

Fixes geopython#2361

Root URL links in landing page, collections, and item endpoints were constructed as base_url?f=json without a slash before the query string. When users configure a URL with a trailing slash (e.g., http://localhost:5000/somepath/api/), the generated URLs would incorrectly omit the slash (e.g., http://localhost:5000/somepath/api?f=json).

Changed root URL link construction to always include a / before the query string, producing correct URLs like http://localhost:5000/somepath/api/?f=json.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The url configuration paramater does not respect the trailing slash as the application root

1 participant