Skip to content

Prevent ending slash in base-path

Date: 2023-09-20

Status: proposed

Context

While using the Remix stack and refactoring the development server the base-path somehow came in focus for various reasons, because an ending slash was enforced in the configuration during application creation.

This has led to double slashes in routes. When changing the base-path (removing the ending slash), this has an side-effect on the public-path, which is a combination of the base-path and name of the build folder, used for the development server.

Decision

To provide a stable and usable application we decided to not let the base-path end with a slash.

Consequences

When creating a future application for / this will create some effort to support that. At the moment the remix-stack is supposed to work with a base-path (e.g. /outlook) only.