Commit 405ce89ef87c093bd2c44b82cfe0c9e1e47ba78a
1 parent
ea3578f2
Exists in
master
and in
29 other branches
ActionItem135: redirecting to user home page upon login
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1164 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
app/controllers/public/account_controller.rb
... | ... | @@ -128,7 +128,7 @@ class AccountController < PublicController |
128 | 128 | end |
129 | 129 | |
130 | 130 | def go_to_user_initial_page |
131 | - redirect_back_or_default(myprofile_path(:controller => 'profile_editor', :profile => current_user.login)) | |
131 | + redirect_back_or_default(:controller => "content_viewer", :profile => current_user.login, :action => 'view_page', :page => []) | |
132 | 132 | end |
133 | 133 | |
134 | 134 | end | ... | ... |
test/integration/user_registers_at_the_application_test.rb
... | ... | @@ -15,7 +15,7 @@ class UserRegistersAtTheApplicationTest < ActionController::IntegrationTest |
15 | 15 | |
16 | 16 | post '/account/signup', :user => { :login => 'mylogin', :password => 'mypassword', :password_confirmation => 'mypassword', :email => 'mylogin@example.com' } |
17 | 17 | assert_response :redirect |
18 | - assert_redirected_to myprofile_path(:controller => 'profile_editor', :profile => 'mylogin') | |
18 | + assert_redirected_to '/mylogin' | |
19 | 19 | |
20 | 20 | # user is logged in right after the registration |
21 | 21 | follow_redirect! | ... | ... |