Skip to end of metadata
Go to start of metadata

We have several custom themes using confluence 3.1.2 with TB 4.0.2.
I have the following added

{builder-show:user=@anonymous}
{div:class=left-block|style=border-bottom:1px solid #C2C2C2;}
{link-to:login}Login{link-to} {img:src=images/sec-key.gif}
{div}
{builder-show}
{builder-hide:user=@anonymous}
{div:class=left-block|style=border-bottom:1px solid #C2C2C2;}
{link-to:logout}Logout{link-to}

The problem I am comming across is that when the user logs in they are redirected to the confluence dashboard and not the page they were on. This only happens with sites created with TB. Any confluence default spaces work fine.
Can anyone assist?

  • No labels

7 Comments

  1. Unknown User (gfraser)

    Are you using Site Minder or some other sort of SSO or external login authentication?

    1. Unknown User (sshenker)

      We are using our ldap server for authentication.
      If I click the login from a Non-TB site the url looks like this

      https://servername/login.action?os_destination=%2Fdisplay%2Fds%2FConfluence%2BOverview

      From TB it only gives me

      https://servername/login.action

      As you can see there is no redirection

      1. Unknown User (gfraser)

        What markup did you use to generate the login link?

  2. Unknown User (sshenker)

    I am using the link-to macro. See above

    1. Why?

      {compound-menuitem} will do exactly what you are trying to do without all the faffing with builder-show/hide

      {menuitem}{compound-menuitem:login|caption=login}{img:src=images/sec-key.gif}
      {menuitem}{compound-menuitem:logout|caption=logout}
      
      Unknown macro: {menuitem}
      Unknown macro: {compound-menuitem}
      Unknown macro: {img}
      Unknown macro: {compound-menuitem}
      1. Unknown User (gfraser)

        If using compound-menuitem you'd probably want flat=true param.

    2. Unknown User (gfraser)

      Yarg. That's the problem. Use the menulink macro instead, eg:

      {menulink:login}Login{menulink}
      

      The linking plugin (link-to macro) causes all sorts of problems as it's not tested for use in all the different locations that a theme can display it. The macros that come with Builder are tested in all sorts of weird areas within Confluence so they are more likely to output the correct links.