Skip to content

Base for routing #369

Closed
Closed
@MartinKavik

Description

@MartinKavik

@jgrund Hi, I'm using a base tag in my seed app. When it's not / it seems to break routing. Is there a way to configure routing to work with a non / base?
In dev mode I want to have a / base, but in prod I want to have a /ui base
It would be nice if seed could account for what the base is and basically remove it from routing configs
Otherwise it seems that I need to conditionally account for what the base is dependant on the environment

Design decisions:

  1. Where we want to setup router base path? (In App builder, get from base tag from head, etc.)
  2. Should we change Url behaviour? I.e. base path would be trimmed from Url::path.
  3. How does it alter routing.rs functions behavior?
  4. How will be a tags handled?
  5. ..

Metadata

Metadata

Assignees

No one assigned

    Labels

    missing functionalityNot quite a bug, but needs to be addressed

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions