Keep the original address in browser history with proxy redirection
Hi everybody,
I use the proxy redirection in Zotero and it works great (especially the automatical detection of new hosts). However, I was wondering if it is possible to leave the original address in the browser history when redirecting?
My problem is caused by the proxy not being flexible. When I'm not already logged in to the proxy the redirection doesn't work. It only shows a login page and does not redirect to the proxied page I tried to access. Is it possible to make the "original" un-proxied page available in browsing history so that I can use the back button to go back to the page I tried to access? This would make it a lot easier to start over when the I forget to log in before going to a page that is automatically redirected. This is for example an issue when I open a link to an article in an e-mail with content alerts from a journal. As the link is automatically proxied, I have to return to the e-mail to find the original link when I am redirected to a login page.
I use the proxy redirection in Zotero and it works great (especially the automatical detection of new hosts). However, I was wondering if it is possible to leave the original address in the browser history when redirecting?
My problem is caused by the proxy not being flexible. When I'm not already logged in to the proxy the redirection doesn't work. It only shows a login page and does not redirect to the proxied page I tried to access. Is it possible to make the "original" un-proxied page available in browsing history so that I can use the back button to go back to the page I tried to access? This would make it a lot easier to start over when the I forget to log in before going to a page that is automatically redirected. This is for example an issue when I open a link to an article in an e-mail with content alerts from a journal. As the link is automatically proxied, I have to return to the e-mail to find the original link when I am redirected to a login page.
I don't think there's a reasonable way for Zotero to keep the unproxied URL in the browser history, no.
For your curiosity:
I've had to make my own (very primitive) hack to make the proxy redirection work, as my institution (University of Oslo Norway) is using some kind of citrix vpn (?) which encodes addresses into base64 (i think).. Since I cannot encode addresses to base64 in the zotero connector I use a static page to redirect. Here's an example of a link to the zotero.org/download page:
https://vpn2.uio.no/+CSCO+0h75676763663A2F2F6A6A6A2E6D62677265622E626574++/download/
and I'm using this webpage to redirect: http://folk.uio.no/oyvinbso/redir.html (for example http://folk.uio.no/oyvinbso/redir.html?www.zotero.org)
Which gives this setting in zotero connector:
https://vpn2.uio.no/+CSCO+00756767633A2F2F736279782E6876622E6162++/oyvinbso/redir.html?%h/%p
So to solve my problem, I created a second redirector outside the proxy which uses "window.location.href" for redirection and thus keeps the redirection page in history. This page then redirects through the proxy.