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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

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

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

[Solved] Prevent SS from rewriting Links in templates


Go to End


3 Posts   3454 Views

Avatar
derralf

Community Member, 28 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, 5523 Posts

4 July 2009 at 9:47pm

Avatar
derralf

Community Member, 28 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