Then... isn't this working as expected?
When you're not logged in and try to visit the url you are redirected to your Home page.
If you want to login you need to use the direct link to the login page.
That's what this setting intends to do right? If not, please explain it to me as i obviously didn't understand then.
The problem is that with the current implementation, you see no page: your browser is going to tell you that there are too many redirection to show you a page.
That problem occurs for each page if you are not logged in but the /users/signin page.
This is obviously not the expected way it should work :)
The usual redirection to /users/signin from all page when the user is not logged in should be disabled if a custom URL is given on the settings page.
hmm i just tried to reproduce this on my dev setup and failed.
I ony get redirected to the set homepage if i call http://localhost:3000 while i'm not logged in.
On other pages like this http://localhost:3000/gitlab-org/gitlab-test/
I get redirected to the login page.
I am able to reproduce this on 8.0.3 locally. Behavior is as expected if the user is not signed in. However, on sign in there is an infinite loop if the GitLab sign-in button is used. I believe this is because the URL has ?redirect_to_referer=yes when the sign-in button is used. If I remove this the loop is gone.
Steps to reproduce:
Configure 'Home Page URL' in Admin Area -> Settings. Even if this is some external URL like yahoo.com the bug is reproducible.
Sign out
Visit a URL that will not redirect to the Home Page URL, such as /explore.
Click the Sign In button.
Sign in and observe the infinite redirect loop.
Remove ?redirect_to_referer=yes from the URL and observe that GitLab functions as normal.
@stanhu Unfortunately !1505 (merged) did not fix the issue nor did fc66e1cc help. I'm able to reproduce the issue on 8.0.4 as is the customer. It seems to be related to the redirect_to_referer=yes parameter in the URL.
@dblessing we can try, but we're at max capacity already for 8.2. If you can make time yourself or if @dzaporozhets or @stanhu could help, that'd make it possible.
I have the same issue in Gitlab 8.16.3, after changed the url from internal naming to external https public domain from outside resolve this in infinite redirection.