Redirect from mobile site to full site
Alisak Sanavongsay
asanavongsay at UCMERCED.EDU
Thu Jan 3 11:20:18 EST 2013
Hi Kevin,
Have you tried putting code on the full site to check the referring? If the visitor came from the third-party site, then don't redirect.
Regards,
Alisak.
Alisak Sanavongsay Digital Assets Programmer UC Merced Library 209.201.9073 asanavongsay at ucmerced.edu
On Jan 3, 2013, at 7:38 AM, Kevin Brahm <kevinb at MAIL2.PASCOLIBRARIES.ORG> wrote:
> Our library system has a separate mobile site that uses a third party called wirenode.com. We push mobile users to this site using the following javascript code block
>
> <script type="text/javascript">
> <!--
> if (screen.width <= 699) {
> document.location = "http://pascolibraries.wirenode.mobi";
> }
> //-->
> </script>
>
> I haven't updated the mobile site much since I first took a crack at it when I came to this department at the end of 2011. At the time I noticed that mobile users never had a chance to visit our full site because they would be re-routed each time back to the mobile site. None of us could figure out what code we would use or change to break the cycle, so our workaround at the time was to serve up an alternate version of our index on our mobile site that didn't include the above code. Can anyone help lead us in the right direction? We are in the early stages of learning Drupal and may be heading in that direction (or Wordpress) - but we would like to fix this and get away from our original workaround. Thanks!
>
> Thanks!
>
> Kevin Brahm
> Virtual Services Librarian
> Pasco County Library System
> kevinb at pascolibraries.org
> www.pascolibraries.org
>
>
>
> The information transmitted, including attachments, is intended only for the person(s) or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and destroy any copies of this information. Under Florida law, email addresses are public records. If you do not want your email address released in response to a public-records request, do not send electronic mail to this entity. Instead, contact this office by phone or in writing.
> ============================
> To unsubscribe: http://bit.ly/web4lib
>
> Web4Lib Web Site: http://web4lib.org/
>
> 2013-01-03
>
============================
To unsubscribe: http://bit.ly/web4lib
Web4Lib Web Site: http://web4lib.org/
2013-01-03
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.nd.edu/pipermail/web4lib/attachments/20130103/40ddb894/attachment.htm>
More information about the Web4lib
mailing list