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

This widget could not be displayed.

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

This widget could not be displayed.
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
Posted Sep 17, 2018 in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

602 views 8 6
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