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

0 vote
Colin Goudie Community Champion Jun 27, 2012

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???????

Colin Goudie Community Champion Jun 27, 2012

ah sorry, mis-read your post

0 vote
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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

899 views 23 12
Join discussion

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