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 Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

1,617 views 4 13
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