Skip to content

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

Description

@worthwhileindustries

Description
A clear and concise description of what the bug is.

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

url: http://localhost:5000/somepath/api/ so base urls are generated without the trailing slash

Steps to Reproduce
Steps to reproduce the behavior:

add url: http://localhost:5000/somepath/api/ the pygeoapi yml configuration

Expected behavior
A clear and concise description of what you expected to happen.

The expectation is that the url respects the trailing slash for a base url and links are generated appropriately

so setting http://localhost:5000/somepath/api/ should generate root level urls as http://localhost:5000/somepath/api/?f=jsonld or http://localhost:5000/somepath/api/ NOT http://localhost:5000/somepath/api?f=jsonld? or http://localhost:5000/somepath/api

Screenshots/Tracebacks
If applicable, add screenshots to help explain your problem.

Environment

  • OS: RHEL 9.x
  • Python version: 3.12
  • pygeoapi version: 0.23.0

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions