andy-portmen / open-in

Send URLs from one browser to another one
http://add0n.com/open-in.html
172 stars 113 forks source link

Firefox open-in-chrome does not work with URLs that contain `start` word #72

Open kuntashov opened 1 year ago

kuntashov commented 1 year ago

Hi @andy-portmen! Thank you for such useful and very handy open-in extensions!

I'm faced with minor but annoying bug in open-in-chrome v0.2.8 for firefox:

Given Firefox browser with open-in-chrome ext installed
When i navigate in Firefox to the url "https://en.wiktionary.org/wiki/start"
And I click open-in-chrome button
Then I expect Chrome browser would open
And I expect address bar contains url "https://en.wiktionary.org/wiki/start"
But I see wrong url "https://en.wiktionary.org/wiki/start_/WAIT"

Same happens with https://start.io url (it opens-in-chrome as https://www.start%20/WAIT.io/) and other that contain "start" word in any part of the url.

It seems the bug is here: https://github.com/andy-portmen/open-in/blob/0e675573baa95be3ea9999a1ea1a6f9e490e3a20/common/common.js#L111

Chrome extension open-in-firefox works fine with such urls.