Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

priority for route referrers? #130

Open
dbu opened this issue Feb 11, 2015 · 0 comments
Open

priority for route referrers? #130

dbu opened this issue Feb 11, 2015 · 0 comments

Comments

@dbu
Copy link
Member

dbu commented Feb 11, 2015

as seen when discussing symfony-cmf/routing-auto#31 and canonical route for seo, we noticed that we may need to specify that a route is more or less important for a content. in the case of redirects to the content, they could be considered less important, in case of the canonical route, it could be boosted to be more important.

one solution would be an additional interface that routes can implement to give a priority, and the generator looks at that interface (and assumes prio 0 when interface not present). i assume that the locale would remain first criteria, and priority would be second criteria. we should probably not offload this task to the content (as there may be many diferent content classes and they should not need to know about this), but do it in the generator. /cc @ElectricMaxxx, @UFTimmy

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

No branches or pull requests

1 participant