url pasted params parsed incorrectly
Bug
How to reproduce
create a new http request
just paste url
https://httpbin.org/get?a=1 in the url-bar
What happened:
url params not be parsed, but view fouce on param tab.
Reason
After I pasted the url, at first UrlBar#onPasteOverwrite was triggered. This hook parsed url with params correctly. But then, UrlBar#onUrlChange was triggered. onUrlChange only used the raw whole url as param without parsing.
Eventually the wrong update overwrites the previous correct update.
Linux2025.1.1
Maybe we can parse url on the Rust side.
If so, the other problem URL params strange behavior will also be fixed.
I find a new way to solve this. But it might be radical.
In
UrlBar#onUrlChange, we can check if the new url contains?.https://yaak.app/blog/2025.1.2