Skip to content

Make trailing slash optional #820

Closed
Closed
@aldendaniels

Description

@aldendaniels

Desired behavior:

  1. Always allow an optional trailing slash
  2. Never add an optional trailing slash when generating links via makePath

I think this behavior is pretty standard.

Today (as of v0.12.9) makePath appends a trailing slash if a trailing slash is optionally allowed.

Food for thought (tangential): It would be nice to support optional trailing slashes automatically without the need to add a /? to all routes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions