Skip to content

Router: @RouteAlias should have an additional parameter which indicate that the path should be rewritten #2870

Not planned

Description

@denis-anisimov

This is following up for the #2741.

The requested functionality from there:

There could be an additional parameter @RouteAlias(value="/some/path", redirect=true) that will make Flow replace url in the browser to the one that was set in the @route("the_path") for that view.

The parameter name (redirect above) is under discussion.

It should be done once @RouteAlias ticket is implemented.

Activity

  1. pleku commented on Nov 10, 2017

    @pleku

    Since the documentation on @RouteAlias was left out from #2714, it should be added together with this ticket.

  2. added this to the During 2018 candidates milestone on Jun 27, 2018
  3. enver-haase commented on Mar 29, 2019

    @enver-haase
    Contributor

    Was about to file exactly this Feature Request!

  4. totally-not-ai commented on Dec 5, 2026

    @totally-not-ai
    Contributor

    Closing as not planned: the same result can be achieved in application code by implementing BeforeEnterObserver on the view and calling event.forwardTo(...) (or rerouteTo(...)) when the alias path is used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions