Chronophobe / uba-webext

4 stars 0 forks source link

link.springer.com URLs can't be accessed #2

Open savahu opened 7 years ago

savahu commented 7 years ago

Tested on Opera 44.0.2510.857 (PGO)

Go to this URL: https://link.springer.com/article/10.1007%2Fs10676-004-1266-3?LI=true

Click on the uba proxy extension icon.

The link now becomes 'https://link.springer.com.proxy.uba.uva.nl:2048/article/10.1007%2Fs10676-004-1266-3?LI=true' which the proxy can't resolve.

I guess proxy.uba.uva.nl:2048 is for HTTP URL's and proxy.uba.uva.nl:2443 is for HTTPS URL's.

The link should become 'https://link-springer-com.proxy.uba.uva.nl:2443/article/10.1007/s10676-004-1266-3' which works :)

The URL 'https://link.springer.com.proxy.uba.uva.nl:2443/article/10.1007/s10676-004-1266-3' (with dots instead of dashes in the springer subdomain) would also work, but it causes an SSL validation error, because the SSL certificate for 'proxy.uba.uva.nl' is not valid for 'link.springer.com.proxy.uba.uva.nl'

Chronophobe commented 7 years ago

Maybe we should add a little condition in there to redirect springer links to a different url. What do you think?

Edit: ah, I didn't notice that my link did not contain https, therefore it seemed to work. Removed the old comment.