aurelia / router

A powerful client-side router.
MIT License
120 stars 115 forks source link

fix(navigation-plan): add query string from redirect instruction #643

Open MartyBoi opened 5 years ago

MartyBoi commented 5 years ago

See issue: https://github.com/aurelia/router/issues/639

CLAassistant commented 5 years ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

bigopon commented 5 years ago

@MartyBoi It doesn't seem we can simply append the redirect location. There're cases where things would override each other, and there is an issue with redirect with dynamic part in the URL too.

Would need @davismj to chime in

rmja commented 2 years ago

This seems like a reasonable and non breaking change. Could it be merged?

rmja commented 2 years ago

I would really appreciate if a maintainer would look at this PR. It seems really simple and I have used it for a long time now in a big app without any issues. ping @bigopon

bigopon commented 2 years ago

@rmja there' concerns stated in my comments above https://github.com/aurelia/router/pull/643#issuecomment-507198131 and the linked issues. I don't think we can simply merge this yet. And for the very least, we should have a failing test, can you help with that? I can then help proceed this forward faster.

rmja commented 2 years ago

@bigopon Thanks for getting back. There is a very simple example in the issue https://github.com/aurelia/router/issues/667. Basically, if a route is configured like { route: "does-not-work", redirect: "/dashboard?autoselect=true"; }, then the parameter autoselect is not passed on as a parameter to dashboard.

rmja commented 1 year ago

How do we proceed with this?

rmja commented 3 months ago

@bigopon ping..

bigopon commented 3 months ago

Thanks @rmja , it's been a bit difficult to proceed with this for I haven't had time to focus on v1 repos (there been a few queued items), and this repo specifically needs special setup work refactoring to make all future work fast/easy. Will keep this in mind and act as soon as I can.