1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.3 xen:link redirect to same page

Discussion in 'Styling and Customization Questions' started by Mike Creuzer, May 1, 2014.

  1. Mike Creuzer

    Mike Creuzer Well-Known Member

    Hi there,

    I am trying to create a link that changes the theme. I want the redirect. This is what I have:

    <a href="{xen:link 'misc/style', '', 'style_id=32', '_xfToken={$visitor.csrf_token_page}', 'redirect={$redirect}'}"></a>
    I want the link to change the theme and not show any change in page (no 'Are you sure you want to change the style' or anything). So if someone was in thread_view, they would see the theme change on that thread.

    Much appreciated!
  2. Milano

    Milano Well-Known Member

    <a href="{xen:link 'misc/style', '', 'style_id=32', '_xfToken={$visitor.csrf_token_page}', 'redirect={$requestPaths.requestUri}'}"></a>
    Hope that help
    rafass, Mike Creuzer and brstrm like this.

Share This Page