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.

RedirectToPage doesn't trim /Index from URL #6080

Closed

Description

@DamianEdwards

RedirectToPage should trim the trailing /Index from the URL given that it's default anyway.

That is, doing this return RedirectToPage("/Index"); should effectively be the same as return Redirect("~/");.

Obviously needs to work for sub-folders and when route values are passed as well.

Activity

  1. added this to the 2.0.0-preview1 milestone on Apr 5, 2017
  2. DamianEdwards commented on Apr 5, 2017

    @DamianEdwards
    MemberAuthor
  3. rynowak commented on Apr 5, 2017

    @rynowak
    Contributor

    Should we even match /Index - right now we create a route entry for / and for /Index? Is there value to the latter?

    If we want to keep both, then / needs to have a better value of order so that its considered first.

  4. Eilon commented on Apr 5, 2017

    @Eilon
    Contributor

    In the amazing new world of Razor Pages perhaps it's fine to canonicalize URLs to their simplest form?

  5. added 2 commits that reference this issue on Apr 20, 2017
    f2ab6a2
    0bdb0e9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions