question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deprecate RouteAlias and replace it with existing Route annotation.

See original GitHub issue

It’s simpler to have only one mechanism to register routes using annotations.

Route implementation can be changed to be used multiple times, instead of using also RouteAlias.

Documentation needs review as well after the issue is completed.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
fluorumlabscommented, Mar 24, 2020

Speaking of route and route aliases. Consider a user profile view, which can be accessible either via /profile (for current user) or via /user/12345 for some other registered user. That translates to

@Route("profile")
@Route("user/:userId(" + RouteParameterRegex.INT + ")")

Obviously, those routes are not aliases to each other, and using @RouteAlias is semantically incorrect in that example.

0reactions
denis-anisimovcommented, Mar 30, 2020

Good point.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Registering Routes Dynamically | Routing and Navigation | Flow
All components with an @Route annotation are added to the application scope. Configuring User-specific Routes. You can add and remove routes for ...
Read more >
Routing (Symfony Docs)
Route Aliasing. Deprecating Route Aliases. Route Groups and Prefixes; Getting the Route Name and Parameters; Special Routes.
Read more >
RouteConfiguration (Flow Server 2.2.0 API) - Javadoc.io
Remove the given navigation target route registration. ... the Route annotation to get the path and also register any RouteAlias that may be...
Read more >
How to fix Symfony 3.4 @Route and @Method deprecation
Replace this: ... use Symfony\Component\Routing\Annotation\Route; ... /@nebkam/symfony-deprecated-route-and-method-annotations-4d5e1d34556a.
Read more >
com.vaadin.flow.server.RouteRegistry java code examples | Tabnine
Add a listener that is notified when routes change for the registry. ... Note! this will remove target route and if possible any...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found