You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example this pattern:
':language:/blog/post/{id}'
is matched when language is part of url
'en/blog/post/1'
but if language is ommited, (which would be equivalent of using the default language)
'blog/post/1'
the route isn't matched.
The text was updated successfully, but these errors were encountered:
Not sure how this is going to be handled here, but on every other routing framework I've seen out there, any optional path parameters were only allowed in the end of the URL
we are using similar doubled route for similar case ':language:/blog/post/{id}' and '/blog/post/{id}' where both triggers same target.
But be prepared for shuffled arguments.
Each URI should represent a single unique resource; now you duplicate the unique resource and this will hurt your search engine visibility.
The correct philosophy would be to have the route as '/blog/post/{id}?:language: or if you do not like GET parameters, you could have '/blog/post/{id}/:language:'
I believe Google Bot tries to discover get parameters (or path) regarding language, just like it does with paginated contents. If these are easily discoverable, the Google Bot will kind of reward you, since you will get less penalties for having similar looking pages with similar link structures at the content area.
For example this pattern:
':language:/blog/post/{id}'
is matched when language is part of url
'en/blog/post/1'
but if language is ommited, (which would be equivalent of using the default language)
'blog/post/1'
the route isn't matched.
The text was updated successfully, but these errors were encountered: