Angular: Routing not working correctly with trailing slash and query parameters

Created on 7 May 2017  路  2Comments  路  Source: angulardart/angular

Routing to https://domain/route?orderby=xy works, but https://domain/route/?orderby=xy doesn't.

I just came to discover this, since I'm rewriting a website and Google indexed it with that slash in front of the query parameters. I think it shouldn't make a difference if there's a slash or not.

router bug

Most helpful comment

Yes it is! @rinukkusu the upcoming router release doesn't have this issue. You can try the alpha release now if you'd like: https://pub.dartlang.org/packages/angular_router/versions/2.0.0-alpha%2B1

All 2 comments

@leonsenft is this covered by the new router?

Yes it is! @rinukkusu the upcoming router release doesn't have this issue. You can try the alpha release now if you'd like: https://pub.dartlang.org/packages/angular_router/versions/2.0.0-alpha%2B1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

matanlurey picture matanlurey  路  3Comments

ranquild picture ranquild  路  4Comments

AndreyChernykh picture AndreyChernykh  路  4Comments

luisvt picture luisvt  路  5Comments

jrote1 picture jrote1  路  6Comments