sinucello
Well-known member
Hi,
I`m using this link:
as a trigger for some jquery script.
It works fine on the start page but on every other page, clicking the link will not only trigger the script function but also immediately redirect the user to the home page. I think this happens because xenForo uses base href (yes, I use friendly URLs).
I now added a
to the function to avoid the redirect and it works.
But I still would like to know how I could replace the # with a link to the current page URL (including all parameters).
thank you - all the best,
Sacha
I`m using this link:
Code:
<a href="#" id="toggleLastLinks">some text</a>
It works fine on the start page but on every other page, clicking the link will not only trigger the script function but also immediately redirect the user to the home page. I think this happens because xenForo uses base href (yes, I use friendly URLs).
I now added a
Code:
return false;
But I still would like to know how I could replace the # with a link to the current page URL (including all parameters).
thank you - all the best,
Sacha