Link directly to gallery/photo within mobile/iphone version?

brianbbrianb Registered Users Posts: 96 Big grins
edited May 20, 2010 in SmugMug Support
Is there any way to deep link directly to a category, gallery, or photo on the mobile version of smugmug?

Example: I post a photo somewhere that links to a larger version on my site (let's say to the lightbox view). If someone using a mobile browser views the original link and follows it, I'd like them to end up at that same photo/gallery, but in the mobile version of the site.

I currently have custom JS to redirect all mobile device users to the mobile version of my site. Last night I added some JS that parsed the original url to get the album id, album key, image id, and image key, and redirect to the URLs I noticed within the mobile site that had url parameters:
/m/gallery.mg?AlbumID=xxxxxxxx&AlbumKey=xxxxx
/m/photo.mg?baseURL=AlbumID%3Dxxxxxxx%26AlbumKey%3Dxxxxx&ImageID=yyyyyyyy&ImageKey=yyyyy

but those just return snippets of markup. I believe that the mobile site is using javascript to intercept the onclick event and using the parameters on the link make a separate request. The mobile site is expecting category ids to go to a category page, and normal urls don't have the ids, but the names instead, so I didn't attempt to do anything for that. If there any way around this? Or should I not even try to auto redirect to the mobile version and let those users end up on the normal gallery/photo page? Ideally this would be best as a server site redirect option (feature request, hint hint). I can post the JS I used later if anyone wants to see it.


Thanks,
Brian
http://photography.brianbillman.com
Sign In or Register to comment.