Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

[Solved] Prevent SS from rewriting Links in templates


Reply

3 Posts   2670 Views

Avatar
derralf

3 July 2009 at 5:59am (Last edited: 4 July 2009 10:21pm), Community Member, 24 Posts

does anyone know how to prevent ss from rewiting links in the template?

i've hardcoded links in my template for jQuery ui tabs (jquery-1.3.2 / jquery-ui-1.7.2)

But SS rewrites my Links from #myfirsttab to /mydir/mypage/#myfirsttab
(I'm working locally with mamp, ss-site in localhost/mydir)

This rewriting makes jQuery Tabs load the full page (/mydir/mypage/#myfirsttab) via AJAX instead of just hiding/showing the panels as expected

How can I prevent SS from rewriting my Links?

Avatar
Willr

4 July 2009 at 9:47pm Forum Moderator, 5511 Posts

See http://silverstripe.org/general-questions/show/252254?start=0#post263943

Avatar
derralf

4 July 2009 at 10:21pm Community Member, 24 Posts

@willr thanks!
i already found this snippet yesterday.
additional you have to apply this bugfix to /sapphire/core/SSViewer.php to really really disable hashlink rewriting:
http://open.silverstripe.com/changeset/76529