I managed to make a patch that fixes my problem without using any separate
virtualhost by referring to
http://gitorious.org/gitorious/base_uri-fixes/commit/6eedbe7021a212616b15ffb2df606357ccb410c7
.
The patch in the link does not work directly so I picked the patch
partially, modified to match the current implementation.
Here I post the patch for me below. It needed modifying controller codes.
I'll be happy if the patch is useful for future updates.
Thank you for reply.
diff -cr gitorious.orig/app/controllers/sessions_controller.rb
gitorious/app/controllers/sessions_controller.rb
*** gitorious.orig/app/controllers/sessions_controller.rb 2011-09-14
11:11:33.166028086 +0900
--- gitorious/app/controllers/sessions_controller.rb 2011-09-14
11:17:01.057529862 +0900
***************
*** 49,55 ****
clear_varnish_auth_cookie
reset_session
flash[:notice] = "You have been logged out."
! redirect_back_or_default('/')
end
protected
--- 49,55 ----
clear_varnish_auth_cookie
reset_session
flash[:notice] = "You have been logged out."
! redirect_back_or_default("#{relative_url_root}/")
end
protected
***************
*** 121,127 ****
:secure => true
}
end
! check_state_and_redirect('/')
end
def check_state_and_redirect(redirection_url)
--- 121,127 ----
:secure => true
}
end
! check_state_and_redirect("#{relative_url_root}/")
end
def check_state_and_redirect(redirection_url)
diff -cr gitorious.orig/app/controllers/users_controller.rb
gitorious/app/controllers/users_controller.rb
*** gitorious.orig/app/controllers/users_controller.rb 2011-09-14
11:11:33.166028086 +0900
--- gitorious/app/controllers/users_controller.rb 2011-09-14
11:21:02.129540978 +0900
***************
*** 109,115 ****
else
flash[:error] = I18n.t "users_controller.activate_error"
end
! redirect_back_or_default('/')
end
def forgot_password
--- 109,115 ----
else
flash[:error] = I18n.t "users_controller.activate_error"
end
! redirect_back_or_default("#{relative_url_root}/")
end
def forgot_password
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]