Skip to content

Configuration option to disable automatic removal of trailing slashes #131

Closed
@asmth

Description

@asmth

It would be nice to have the option to disable the removal of trailing slashes in urls for dynamic query parameters.

An example Angular UIRouter:

$stateProvider.state('index', { url: '/dashboard/', templateUrl: 'app/view/dashboard.html', controller: 'controller.dashboard', });

dashboard/?param1=value&param2=value re-routes to: dashboard?param1=value&param2=value

Which will no longer match the route.

This will allow for dynamic query parameters to be passed to the controller.

The removal of the trailing slash is a nice feature, and works great for most cases - would it be an idea to disable on a route by route basis?

{ "name": "app", "root": "public", "routes": { "**": "index.html" }, "clean_urls": true, "error_page": "error.html" "slashes": ["/dashboard", "/orders"] }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions