Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

Please add support for AppendTrailingSlash to RouteOptions #188

Closed
danroth27 opened this issue Jun 12, 2015 · 0 comments
Closed

Please add support for AppendTrailingSlash to RouteOptions #188

danroth27 opened this issue Jun 12, 2015 · 0 comments

Comments

@danroth27
Copy link
Member

Originally reported by @RehanSaeed in aspnet/Mvc#2691

MVC 5 had the RouteCollection.AppendTrailingSlash setting. Please add the same option under the new RouteOptions and perhaps another option to RemoveTrailingSlash for those who prefer not to have one. This is a requirement for Search Engine Optimization.

services.ConfigureRouting(routeOptions =>
    {
        routeOptions.AppendTrailingSlash = true;
        routeOptions.LowercaseUrls = true;
    });
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants