3443 Posts in 1030 Topics by 871 members
|Go to End|
28 October 2009 at 10:24pm Last edited: 28 October 2009 11:37pm
To show the example:
code on /page/
code on /page/?foo=bar
Is there a way to stop SilverStripe from adding the parameter part to the <a href=""> ?
I already haveactive to stop Silverstripe from adding slashes to url's.
Help is much appreciated!
Edit 2: Seems this is a conflict of functionalites of JQUI Tabs and Silverstripe. Silverstripe uses the base tag, so it *needs* to add the $URLSegment of the page before the anchor to make it navigate correctly. Then the JS "detects" a page url instead of an anchortag so it then loads the corresponding page into the displayed tab.
Guess i need to alter the JS to let it respond to something else, like title="#tabs-1" i guess.
2 November 2009 at 9:12am
> Then the JS "detects" a page url instead of an anchortag so it then loads the corresponding page into the displayed tab.
This is a but in JQuery UI Tabs, it doesn't take the <base> into account when auto-detecting URLs that are not pointing to the current page.
Sadly there is no way to disable remote tabs (see http://dev.jqueryui.com/ticket/3527). Perhaps try raising this again on http://dev.jqueryui.com/newticket ? I've tried to fix it a while ago, but its a bit tricky to wrangle all W3C allowed URLs with regular expressions etc.
2 November 2009 at 10:38pm Last edited: 2 November 2009 10:40pm
Thx for your reply, but i fixed it already. I used a custom jquery script to target the href attribute of those <a> elements to reset the attribute to the wanted setting and it worked
This is the script i made:
// Count till 3 for the 3 tabs
// Target tabs and modify attribute
jQuery('#actierotator #acties li a.tabs-'+i).attr('href','#tabs-'+i);
This overrides the generated code and "corrects" the behaviour to what i want it to do.
And if JS is disabled, it degrades gracefully.
18 December 2009 at 7:37am
i found a ticket that does the trick.
18 December 2009 at 8:56am
Ah good find Guilllaume! I was trying to patch this myself a while ago, its very annoying... lets hope jQuery UI 1.8 comes out soon ;) Hows things going in Stockholm?
28 January 2010 at 1:23pm
I am having a problem with this as well where I will write out links such as <a href="$Link" title="Go to page $PageNum">$PageNum</a>
The problem is if there is a query string it is randomly appended to $Link or even inside some html content sections.
I can't find a common theme too as to when this happens versus when it doesn't happen as it doesn't do it to every link in the page just random ones.
Any idea how to have this stop or remove it manually with a function or on the template?
5 May 2010 at 2:55pm
JQuery 1.8 not fix the error, you need change the js for fix it.
|Go to Top|