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   2725 Views

Avatar
derralf

Community Member, 24 Posts

3 July 2009 at 5:59am

Edited: 04/07/2009 10:21pm

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

Forum Moderator, 5513 Posts

4 July 2009 at 9:47pm

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

Avatar
derralf

Community Member, 24 Posts

4 July 2009 at 10:21pm

@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