gitlab-org--gitlab-foss/app
Stan Hu c1fe98e0b9 Prevent too many redirects error when home page URL set to external_urll
Many users naively set the home page URL setting to external_url
(e.g. https://mydomain.com). When an unauthenticated user signs in, this
causes endless redirections. For example, this is occuring:

1. Unauthenticated user attempts to access https://mydomain.com/dashboard
2. Application redirects to the home page URL: https://mydomain.com
3. Repeat step 2

In step 3, ApplicationController should have redirected the user to
https://mydomain.com/users/sign_in. Disabling the redirection if home
page URL is the same as external_url prevents users from messing up.

Closes https://github.com/gitlabhq/gitlabhq/issues/8843
Closes #2057
2015-08-26 07:38:33 -07:00
..
assets Merge branch 'dropdown-positioning' into 'master' 2015-08-25 17:35:28 +00:00
controllers Prevent too many redirects error when home page URL set to external_urll 2015-08-26 07:38:33 -07:00
finders Rename NoMilestone to Milestone::None 2015-07-06 22:39:55 -04:00
helpers Merge branch 'reply-by-email' into 'master' 2015-08-22 00:00:08 +00:00
mailers Ignore empty incoming messages. 2015-08-24 10:57:35 -07:00
models Merge branch 'fix-error-500-groups-with-avatar' into 'master' 2015-08-24 15:23:10 +00:00
services Create cross-reference for closing references on commits pushed to non-default branches. 2015-08-22 16:49:09 +02:00
uploaders
views Merge branch 'dropdown-positioning' into 'master' 2015-08-25 17:35:28 +00:00
workers Merge branch 'handle-smtp-input-errors' into 'master' 2015-08-25 09:23:43 +00:00