Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect to wrong address using google #44

Closed
VitaliyKovalchuk opened this issue Jul 30, 2015 · 2 comments
Closed

Redirect to wrong address using google #44

VitaliyKovalchuk opened this issue Jul 30, 2015 · 2 comments

Comments

@VitaliyKovalchuk
Copy link

Greetings,

I am testing latest git.Sometime using a search engine google.com your module redirect me to wrong url, (http://localhost/url?sa=t&rct=j&q=&esrc=s&source=web&cd=3&ved=0CDwQFjACahUKEwjsv-r014LHAhUBhSwKHbq7AYo&url=%2Fproxy%2Fhttp%3A%2F%2Fwww.apple.com%2Fru%2Fstevejobs%2F&ei=1wG6Vaz4HoGKsgG694bQCA&usg=AFQjCNELu0sMKoBA1ZZwj5D57TXfU17AyA&bvm=bv.99028883,d.bGg instead of allaboutstevejobs.com/) to reproduce the problem you need to go to the google, search Steave Jobs and click on link "all about Steve Jobs.com"

@nfriedly
Copy link
Owner

That's odd...

@nfriedly
Copy link
Owner

So, it looks like google is using javascript to rewrite the links as you click on them. But, they aren't doing it correctly, so it looses the port number. This is, unfortunately, almost impossible to fix in a reliable fashion :(

The upshot is that if you run sudo PORT=80 npm start to host the proxy, (or, if you're on windows, you might be able to skip the sudo part) then you can access it at http://localhost/ without any port number, and things start working. Of course, if you navigate to allaboutstevejobs.com through the proxy, their broken css makes the site look wrong. (That's something I might be able to fix in the proxy, but I don't know if it's worth the trouble...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants