Pretty URLs not recognized by jQuery? (SOLVED)
Posted: Wed Dec 30, 2009 3:38 pm
Hi everyone, this is my first post. I've been using CMSMS on a few recent projects and have REALLY enjoyed it!
My issue is this: my site is using Pretty URLs, and on a page that's a few levels deep into the hierarchy (e.g. "domain.com/section/page/"), I'm running a jQuery script (Code Slider: http://www.ndoherty.biz/tag/coda-slider/ ) that uses hash links to trigger a sliding effect. Unfortunately the links are resolving to "domain.com/#2" (thus sending the browser to the homepage) instead of "domain.com/section/page/#2", which I guess is because the page is running from domain.com/index.php. When I type in the rewritten URL + hash anchor manually, it works as expected.
I have posted this question to the Coda-Slider forum as well, but it seems like this might be a problem for a lot of jQuery scripts that use hash anchors for triggers. Is there a way to pass the rewritten URL from CMSMS to JavaScript/jQuery?
My issue is this: my site is using Pretty URLs, and on a page that's a few levels deep into the hierarchy (e.g. "domain.com/section/page/"), I'm running a jQuery script (Code Slider: http://www.ndoherty.biz/tag/coda-slider/ ) that uses hash links to trigger a sliding effect. Unfortunately the links are resolving to "domain.com/#2" (thus sending the browser to the homepage) instead of "domain.com/section/page/#2", which I guess is because the page is running from domain.com/index.php. When I type in the rewritten URL + hash anchor manually, it works as expected.
I have posted this question to the Coda-Slider forum as well, but it seems like this might be a problem for a lot of jQuery scripts that use hash anchors for triggers. Is there a way to pass the rewritten URL from CMSMS to JavaScript/jQuery?