diff --git a/app/controllers/public/account_controller.rb b/app/controllers/public/account_controller.rb index 97b4a17..f8c4a8c 100644 --- a/app/controllers/public/account_controller.rb +++ b/app/controllers/public/account_controller.rb @@ -128,7 +128,7 @@ class AccountController < PublicController end def go_to_user_initial_page - redirect_back_or_default(myprofile_path(:controller => 'profile_editor', :profile => current_user.login)) + redirect_back_or_default(:controller => "content_viewer", :profile => current_user.login, :action => 'view_page', :page => []) end end diff --git a/test/integration/user_registers_at_the_application_test.rb b/test/integration/user_registers_at_the_application_test.rb index 11dc7e0..3e8f7ed 100644 --- a/test/integration/user_registers_at_the_application_test.rb +++ b/test/integration/user_registers_at_the_application_test.rb @@ -15,7 +15,7 @@ class UserRegistersAtTheApplicationTest < ActionController::IntegrationTest post '/account/signup', :user => { :login => 'mylogin', :password => 'mypassword', :password_confirmation => 'mypassword', :email => 'mylogin@example.com' } assert_response :redirect - assert_redirected_to myprofile_path(:controller => 'profile_editor', :profile => 'mylogin') + assert_redirected_to '/mylogin' # user is logged in right after the registration follow_redirect! -- libgit2 0.21.2