how to change the url redirect after user register??

Hi, I need to do a user register, but than can be redirected to a specific page, not to dashboard or another Home page...

Can I do that???

please help thnx.

2 answers

I've used the code below to set the user's site homepage. Hopefully can point you in the right direction

UserPreferences userPreferences = new UserPreferences(userAccessor.getPropertySet(user));
            userPreferences.setString(UserPreferencesKeys.PROPERTY_USER_SITE_HOMEPAGE, userDetails.getHomeSpaceKey());

it doesn't work to me, I need send a parameter to "register.action" with the url after register... like the "os_location" used in "login.action".... do you understand???????

ah sorry, mis-read your post

0 votes
David Simpson Community Champion Jun 27, 2012

You could use a Servlet Filter on the page they go to for successful registration :)

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 29, 2018 in New to Confluence

How to use Confluence Cloud for stakeholder management

Most of us don’t need much convincing that stakeholder management is important. It just makes sense that keeping everyone in-the-know on projects and assigning clearly defined roles is key to having ...

1,011 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you