Only redirect to homepage url when its not the root url
Only redirect to homepage url when its not the root url

It was possible to create an infi redirect when the user set up the
`home_page_url` to redirect to the main URL of the gitlab instance.

This fix makes sure this redirect is not possible.

Fixes !1020

Signed-off-by: Jeroen van Baarsen <2e488d5cebaf6d2832884be70e328933bd4c80ab@gmail.com>

yatish27/gitlabhq,dreampet/gitlab,jrjang/gitlabhq,jrjang/gitlab-ce,ksoichiro/gitlabhq,cui-liqiang/gitlab-ce,dwrensha/gitlabhq,daiyu/gitlab-zh,larryli/gitlabhq,cui-liqiang/gitlab-ce,htve/GitlabForChinese,screenpages/gitlabhq,screenpages/gitlabhq,axilleas/gitlabhq,axilleas/gitlabhq,Datacom/gitlabhq,dplarson/gitlabhq,darkrasid/gitlabhq,LUMC/gitlabhq,ttasanen/gitlabhq,icedwater/gitlabhq,stoplightio/gitlabhq,martijnvermaat/gitlabhq,jrjang/gitlab-ce,shinexiao/gitlabhq,ksoichiro/gitlabhq,Datacom/gitlabhq,openwide-java/gitlabhq,mrb/gitlabhq,duduribeiro/gitlabhq,LUMC/gitlabhq,mmkassem/gitlabhq,larryli/gitlabhq,mrb/gitlabhq,jirutka/gitlabhq,jrjang/gitlabhq,SVArago/gitlabhq,dwrensha/gitlabhq,icedwater/gitlabhq,dplarson/gitlabhq,SVArago/gitlabhq,dplarson/gitlabhq,duduribeiro/gitlabhq,daiyu/gitlab-zh,daiyu/gitlab-zh,louahola/gitlabhq,openwide-java/gitlabhq,larryli/gitlabhq,louahola/gitlabhq,ferdinandrosario/gitlabhq,t-zuehlsdorff/gitlabhq,Soullivaneuh/gitlabhq,darkrasid/gitlabhq,mr-dxdy/gitlabhq,axilleas/gitlabhq,ikappas/gitlabhq,openwide-java/gitlabhq,icedwater/gitlabhq,ikappas/gitlabhq,ksoichiro/gitlabhq,stoplightio/gitlabhq,dwrensha/gitlabhq,allysonbarros/gitlabhq,axilleas/gitlabhq,icedwater/gitlabhq,mr-dxdy/gitlabhq,koreamic/gitlabhq,yatish27/gitlabhq,martijnvermaat/gitlabhq,SVArago/gitlabhq,jirutka/gitlabhq,duduribeiro/gitlabhq,jrjang/gitlabhq,larryli/gitlabhq,martijnvermaat/gitlabhq,allysonbarros/gitlabhq,dplarson/gitlabhq,LUMC/gitlabhq,martijnvermaat/gitlabhq,ttasanen/gitlabhq,openwide-java/gitlabhq,mr-dxdy/gitlabhq,yatish27/gitlabhq,Soullivaneuh/gitlabhq,koreamic/gitlabhq,jirutka/gitlabhq,ttasanen/gitlabhq,mr-dxdy/gitlabhq,cui-liqiang/gitlab-ce,ferdinandrosario/gitlabhq,shinexiao/gitlabhq,Datacom/gitlabhq,allysonbarros/gitlabhq,ttasanen/gitlabhq,louahola/gitlabhq,mmkassem/gitlabhq,ksoichiro/gitlabhq,jrjang/gitlab-ce,LUMC/gitlabhq,Soullivaneuh/gitlabhq,ikappas/gitlabhq,htve/GitlabForChinese,mmkassem/gitlabhq,Datacom/gitlabhq,screenpages/gitlabhq,ferdinandrosario/gitlabhq,iiet/iiet-git,dreampet/gitlab,iiet/iiet-git,dwrensha/gitlabhq,mrb/gitlabhq,daiyu/gitlab-zh,koreamic/gitlabhq,mrb/gitlabhq,mmkassem/gitlabhq,koreamic/gitlabhq,yatish27/gitlabhq,htve/GitlabForChinese,jrjang/gitlab-ce,t-zuehlsdorff/gitlabhq,Soullivaneuh/gitlabhq,jirutka/gitlabhq,iiet/iiet-git,htve/GitlabForChinese,shinexiao/gitlabhq,cui-liqiang/gitlab-ce,jrjang/gitlabhq,stoplightio/gitlabhq,darkrasid/gitlabhq,ferdinandrosario/gitlabhq,louahola/gitlabhq,dreampet/gitlab,t-zuehlsdorff/gitlabhq,SVArago/gitlabhq,screenpages/gitlabhq,iiet/iiet-git,ikappas/gitlabhq,darkrasid/gitlabhq,duduribeiro/gitlabhq,t-zuehlsdorff/gitlabhq,shinexiao/gitlabhq,allysonbarros/gitlabhq,stoplightio/gitlabhq,dreampet/gitlab