Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

Ensure trailing slash is present when generating URLs that resolve to "default document" Razor Pages, e.g. Index.cshtml #5955

@DamianEdwards

Description

@DamianEdwards

/foo/bar is different to /foo/bar/ when the actual resource being served is not /foo/bar but rather /foo/bar/Index.cshtml.

We should try to ensure that the trailing slash is injected in cases where we generate or interpret URLs when we know it will server a default document, e.g. return Redirect("~/customers") where there is a ~/customers/Index.cshtml

Related to #5921

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions