 Merge branch 'request/branch_compare' into 'master'
 Merge branch 'request/branch_compare' into 'master'

Fix for compare button within branches dialog

For the button Compare within the Branches screen ( https://gitlab.com/gitlab-org/gitlab-ce/branches ) beside a branch "foo"

Old behavior:
Will redirect to the compare page that is defaulted to comparison for branch "foo" <--> "foo"

New behavior:
Will redirect and trigger compare page of branch "default" <--> "foo"
Remove of button beside default branch

fgbreel/gitlabhq,dukex/gitlabhq,ayufan/gitlabhq,openwide-java/gitlabhq,mrb/gitlabhq,t-zuehlsdorff/gitlabhq,allistera/gitlabhq,copystudy/gitlabhq,icedwater/gitlabhq,youprofit/gitlabhq,Soullivaneuh/gitlabhq,mmkassem/gitlabhq,yatish27/gitlabhq,nmav/gitlabhq,theonlydoo/gitlabhq,Soullivaneuh/gitlabhq,liyakun/gitlabhq,k4zzk/gitlabhq,yama07/gitlabhq,bozaro/gitlabhq,mavimo/gitlabhq,fantasywind/gitlabhq,dwrensha/gitlabhq,mente/gitlabhq,flashbuckets/gitlabhq,johnmyqin/gitlabhq,wangcan2014/gitlabhq,k4zzk/gitlabhq,bbodenmiller/gitlabhq,daiyu/gitlab-zh,sue445/gitlabhq,Exeia/gitlabhq,mr-dxdy/gitlabhq,phinfonet/mobbr-gitlabhq,zrbsprite/gitlabhq,chadyred/gitlabhq,8thcolor/testing-public-gitlabhq,NARKOZ/gitlabhq,H3Chief/gitlabhq,kitech/gitlabhq,SkyWei/gitlabhq,vjustov/gitlabhq,rebecamendez/gitlabhq,flashbuckets/gitlabhq,jirutka/gitlabhq,icedwater/gitlabhq,mathstuf/gitlabhq,sonalkr132/gitlabhq,WSDC-NITWarangal/gitlabhq,MauriceMohlek/gitlabhq,tim-hoff/gitlabhq,yonglehou/gitlabhq,kitech/gitlabhq,jrjang/gitlabhq,Telekom-PD/gitlabhq,fscherwi/gitlabhq,dplarson/gitlabhq,pjknkda/gitlabhq,dwrensha/gitlabhq,123Haynes/gitlabhq,Datacom/gitlabhq,akumetsuv/gitlab,fearenales/gitlabhq,SVArago/gitlabhq,yulchitaj/TEST3,michaKFromParis/gitlabhqold,rfeese/gitlab-ce,childbamboo/gitlabhq,jrjang/gitlab-ce,darkrasid/gitlabhq,DanielZhangQingLong/gitlabhq,fpgentil/gitlabhq,xuvw/gitlabhq,screenpages/gitlabhq,mmkassem/gitlabhq,sakishum/gitlabhq,koreamic/gitlabhq,cncodog/gitlab,szechyjs/gitlabhq,joalmeid/gitlabhq,sakishum/gitlabhq,ibiart/gitlabhq,pkallberg/tjenare,Kambda/mobbr-gitlabhq,it33/gitlabhq,Kambda/Mobbr,jaepyoung/gitlabhq,darkrasid/gitlabhq,allysonbarros/gitlabhq,jrjang/gitlab-ce,ksoichiro/gitlabhq,zrbsprite/gitlabhq,Telekom-PD/gitlabhq,williamherry/gitlabhq,dvrylc/gitlabhq,pulkit21/gitlabhq,Soullivaneuh/gitlabhq,htve/GitlabForChinese,NuLL3rr0r/gitlabhq,bladealslayer/gitlabhq,mente/gitlabhq,SkyWei/gitlabhq,chenrui2014/gitlabhq,michaKFromParis/sparkslab,adaiguoguo/gitlab_globalserarch,gorgee/gitlabhq,wangcan2014/gitlabhq,ordiychen/gitlabhq,per-garden/gitlabhq,NKMR6194/gitlabhq,Kambda/mobbr-gitlabhq,michaKFromParis/gitlabhqold,xuvw/gitlabhq,ksoichiro/gitlabhq,theonlydoo/gitlabhq,kotaro-dev/gitlab-6-9,ferdinandrosario/gitlabhq,screenpages/gitlabhq,yuyue2013/ss,theodi/gitlabhq,dplarson/gitlabhq,screenpages/gitlabhq,yulchitaj/TEST3,shinexiao/gitlabhq,OtkurBiz/gitlabhq,DanielZhangQingLong/gitlabhq,ayufan/gitlabhq,gorgee/gitlabhq,since2014/gitlabhq,duduribeiro/gitlabhq,pulkit21/gitlabhq,t-zuehlsdorff/gitlabhq,Kambda/Mobbr,flashbuckets/gitlabhq,aaronsnyder/gitlabhq,chenrui2014/gitlabhq,fantasywind/gitlabhq,michaKFromParis/gitlabhqold,dplarson/gitlabhq,it33/gitlabhq,koreamic/gitlabhq,LUMC/gitlabhq,louahola/gitlabhq,jrjang/gitlabhq,yatish27/gitlabhq,cncodog/gitlab,WSDC-NITWarangal/gitlabhq,akumetsuv/gitlab,bozaro/gitlabhq,Tyrael/gitlabhq,yatish27/gitlabhq,hq804116393/gitlabhq,eliasp/gitlabhq,sakishum/gitlabhq,iiet/iiet-git,childbamboo/gitlabhq,Razer6/gitlabhq,bigsurge/gitlabhq,Tyrael/gitlabhq,rfeese/gitlab-ce,lvfeng1130/gitlabhq,bozaro/gitlabhq,jrjang/gitlabhq,dreampet/gitlab,pkgr/gitlabhq,8thcolor/testing-public-gitlabhq,per-garden/gitlabhq,xuvw/gitlabhq,nguyen-tien-mulodo/gitlabhq,salipro4ever/gitlabhq,fpgentil/gitlabhq,koreamic/gitlabhq,mavimo/gitlabhq,stellamiranda/mobbr-gitlabhq,martijnvermaat/gitlabhq,OtkurBiz/gitlabhq,Tyrael/gitlabhq,szechyjs/gitlabhq,childbamboo/gitlabhq,hacsoc/gitlabhq,stanhu/gitlabhq,sideci-sample/sideci-sample-gitlabhq,TheWatcher/gitlabhq,sideci-sample/sideci-sample-gitlabhq,openwide-java/gitlabhq,fgbreel/gitlabhq,dreampet/gitlab,rhels/gitlabhq,rumpelsepp/gitlabhq,bladealslayer/gitlabhq,iiet/iiet-git,t-zuehlsdorff/gitlabhq,ttasanen/gitlabhq,Exeia/gitlabhq,martijnvermaat/gitlabhq,zBMNForks/gitlabhq,Keystion/gitlabhq,pkgr/gitlabhq,stanhu/gitlabhq,OlegGirko/gitlab-ce,MauriceMohlek/gitlabhq,allysonbarros/gitlabhq,tim-hoff/gitlabhq,mrb/gitlabhq,pjknkda/gitlabhq,hq804116393/gitlabhq,vjustov/gitlabhq,youprofit/gitlabhq,zrbsprite/gitlabhq,SkyWei/gitlabhq,nguyen-tien-mulodo/gitlabhq,larryli/gitlabhq,iiet/iiet-git,copystudy/gitlabhq,Keystion/gitlabhq,stoplightio/gitlabhq,folpindo/gitlabhq,shinexiao/gitlabhq,jaepyoung/gitlabhq,tim-hoff/gitlabhq,cinderblock/gitlabhq,windymid/test2,it33/gitlabhq,axilleas/gitlabhq,Burick/gitlabhq,pkallberg/tjenare,ikappas/gitlabhq,TheWatcher/gitlabhq,fendoudeqingchunhh/gitlabhq,LUMC/gitlabhq,duduribeiro/gitlabhq,jaepyoung/gitlabhq,sekcheong/gitlabhq,fendoudeqingchunhh/gitlabhq,ordiychen/gitlabhq,martijnvermaat/gitlabhq,theonlydoo/gitlabhq,cinderblock/gitlabhq,daiyu/gitlab-zh,sekcheong/gitlabhq,louahola/gitlabhq,WSDC-NITWarangal/gitlabhq,jirutka/gitlabhq,lvfeng1130/gitlabhq,allysonbarros/gitlabhq,sakishum/gitlabhq,kotaro-dev/gitlab-6-9,phinfonet/mobbr-gitlabhq,k4zzk/gitlabhq,allysonbarros/gitlabhq,icedwater/gitlabhq,zBMNForks/gitlabhq,gorgee/gitlabhq,martinma4/gitlabhq,salipro4ever/gitlabhq,Keystion/gitlabhq,ngpestelos/gitlabhq,ngpestelos/gitlabhq,bbodenmiller/gitlabhq,OtkurBiz/gitlabhq,OlegGirko/gitlab-ce,akumetsuv/gitlab,duduribeiro/gitlabhq,kemenaran/gitlabhq,LytayTOUCH/gitlabhq,cui-liqiang/gitlab-ce,kitech/gitlabhq,H3Chief/gitlabhq,kemenaran/gitlabhq,sekcheong/gitlabhq,darkrasid/gitlabhq,dvrylc/gitlabhq,whluwit/gitlabhq,fpgentil/gitlabhq,jairzh/gitlabhq-sfdc,hacsoc/gitlabhq,it33/gitlabhq,theodi/gitlabhq,tk23/gitlabhq,cui-liqiang/gitlab-ce,childbamboo/gitlabhq,fgbreel/gitlabhq,bbodenmiller/gitlabhq,mathstuf/gitlabhq,cui-liqiang/gitlab-ce,revaret/gitlabhq,hq804116393/gitlabhq,liyakun/gitlabhq,ttasanen/gitlabhq,copystudy/gitlabhq,stellamiranda/mobbr-gitlabhq,ikappas/gitlabhq,rebecamendez/gitlabhq,ferdinandrosario/gitlabhq,ttasanen/gitlabhq,salipro4ever/gitlabhq,aaronsnyder/gitlabhq,yfaizal/gitlabhq,dreampet/gitlab,williamherry/gitlabhq,atomaka/gitlabhq,ordiychen/gitlabhq,DanielZhangQingLong/gitlabhq,julianengel/gitlabhq,bbodenmiller/gitlabhq,jairzh/gitlabhq-sfdc,LUMC/gitlabhq,stanhu/gitlabhq,nmav/gitlabhq,hq804116393/gitlabhq,WSDC-NITWarangal/gitlabhq,fgbreel/gitlabhq,ZeoAlliance/gitlabhq,ibiart/gitlabhq,hacsoc/gitlabhq,yonglehou/gitlabhq,axilleas/gitlabhq,per-garden/gitlabhq,daiyu/gitlab-zh,rumpelsepp/gitlabhq,zrbsprite/gitlabhq,gopeter/gitlabhq,sonalkr132/gitlabhq,ordiychen/gitlabhq,williamherry/gitlabhq,Exeia/gitlabhq,Keystion/gitlabhq,yama07/gitlabhq,jrjang/gitlab-ce,LUMC/gitlabhq,Datacom/gitlabhq,eliasp/gitlabhq,dukex/gitlabhq,icedwater/gitlabhq,initiummedia/gitlabhq,youprofit/gitlabhq,NKMR6194/gitlabhq,Burick/gitlabhq,whluwit/gitlabhq,stellamiranda/mobbr-gitlabhq,michaKFromParis/gitlabhq,ttasanen/gitlabhq,123Haynes/gitlabhq,theodi/gitlabhq,LytayTOUCH/gitlabhq,nguyen-tien-mulodo/gitlabhq,tempbottle/gitlabhq,ZeoAlliance/gitlabhq,fscherwi/gitlabhq,larryli/gitlabhq,jairzh/gitlabhq-sfdc,flashbuckets/gitlabhq,yfaizal/gitlabhq,nmav/gitlabhq,screenpages/gitlabhq,yuyue2013/ss,Soullivaneuh/gitlabhq,Datacom/gitlabhq,vjustov/gitlabhq,gopeter/gitlabhq,revaret/gitlabhq,lvfeng1130/gitlabhq,fantasywind/gitlabhq,ksoichiro/gitlabhq,atomaka/gitlabhq,SVArago/gitlabhq,julianengel/gitlabhq,fscherwi/gitlabhq,allistera/gitlabhq,OlegGirko/gitlab-ce,since2014/gitlabhq,123Haynes/gitlabhq,szechyjs/gitlabhq,ngpestelos/gitlabhq,julianengel/gitlabhq,dplarson/gitlabhq,whluwit/gitlabhq,bozaro/gitlabhq,dukex/gitlabhq,rhels/gitlabhq,larryli/gitlabhq,ikappas/gitlabhq,TheWatcher/gitlabhq,dvrylc/gitlabhq,tk23/gitlabhq,fearenales/gitlabhq,nmav/gitlabhq,fscherwi/gitlabhq,jrjang/gitlabhq,stoplightio/gitlabhq,williamherry/gitlabhq,cui-liqiang/gitlab-ce,SkyWei/gitlabhq,kemenaran/gitlabhq,aaronsnyder/gitlabhq,LytayTOUCH/gitlabhq,yatish27/gitlabhq,H3Chief/gitlabhq,joalmeid/gitlabhq,pjknkda/gitlabhq,adaiguoguo/gitlab_globalserarch,bladealslayer/gitlabhq,ngpestelos/gitlabhq,delkyd/gitlabhq,shinexiao/gitlabhq,jairzh/gitlabhq-sfdc,NuLL3rr0r/gitlabhq,mmkassem/gitlabhq,adaiguoguo/gitlab_globalserarch,aaronsnyder/gitlabhq,t-zuehlsdorff/gitlabhq,bigsurge/gitlabhq,Burick/gitlabhq,axilleas/gitlabhq,tempbottle/gitlabhq,yama07/gitlabhq,sonalkr132/gitlabhq,ferdinandrosario/gitlabhq,michaKFromParis/sparkslab,manfer/gitlabhq,luzhongyang/gitlabhq,delkyd/gitlabhq,tk23/gitlabhq,ksoichiro/gitlabhq,Exeia/gitlabhq,gopeter/gitlabhq,mathstuf/gitlabhq,chadyred/gitlabhq,duduribeiro/gitlabhq,kitech/gitlabhq,jaepyoung/gitlabhq,joalmeid/gitlabhq,zBMNForks/gitlabhq,kotaro-dev/gitlab-6-9,per-garden/gitlabhq,dukex/gitlabhq,rhels/gitlabhq,mrb/gitlabhq,htve/GitlabForChinese,NKMR6194/gitlabhq,salipro4ever/gitlabhq,rebecamendez/gitlabhq,jvanbaarsen/gitlabhq,theodi/gitlabhq,gopeter/gitlabhq,Burick/gitlabhq,sue445/gitlabhq,yulchitaj/TEST3,TheWatcher/gitlabhq,fendoudeqingchunhh/gitlabhq,sideci-sample/sideci-sample-gitlabhq,k4zzk/gitlabhq,ikappas/gitlabhq,nguyen-tien-mulodo/gitlabhq,chadyred/gitlabhq,cncodog/gitlab,NuLL3rr0r/gitlabhq,hzy001/gitlabhq,jvanbaarsen/gitlabhq,hzy001/gitlabhq,revaret/gitlabhq,pjknkda/gitlabhq,mente/gitlabhq,mmkassem/gitlabhq,rebecamendez/gitlabhq,tempbottle/gitlabhq,mr-dxdy/gitlabhq,adaiguoguo/gitlab_globalserarch,hzy001/gitlabhq,liyakun/gitlabhq,yama07/gitlabhq,Razer6/gitlabhq,stanhu/gitlabhq,Datacom/gitlabhq,yfaizal/gitlabhq,iiet/iiet-git,Tyrael/gitlabhq,Telekom-PD/gitlabhq,yuyue2013/ss,rfeese/gitlab-ce,bigsurge/gitlabhq,ZeoAlliance/gitlabhq,fantasywind/gitlabhq,michaKFromParis/sparkslab,Devin001/gitlabhq,louahola/gitlabhq,tk23/gitlabhq,jvanbaarsen/gitlabhq,delkyd/gitlabhq,rfeese/gitlab-ce,cinderblock/gitlabhq,martinma4/gitlabhq,dvrylc/gitlabhq,eliasp/gitlabhq,DanielZhangQingLong/gitlabhq,dreampet/gitlab,Devin001/gitlabhq,Telekom-PD/gitlabhq,8thcolor/testing-public-gitlabhq,chadyred/gitlabhq,koreamic/gitlabhq,SVArago/gitlabhq,michaKFromParis/gitlabhqold,rumpelsepp/gitlabhq,vjustov/gitlabhq,johnmyqin/gitlabhq,manfer/gitlabhq,manfer/gitlabhq,htve/GitlabForChinese,yfaizal/gitlabhq,since2014/gitlabhq,mavimo/gitlabhq,revaret/gitlabhq,michaKFromParis/sparkslab,phinfonet/mobbr-gitlabhq,Razer6/gitlabhq,michaKFromParis/gitlabhq,michaKFromParis/gitlabhq,ayufan/gitlabhq,larryli/gitlabhq,dwrensha/gitlabhq,hacsoc/gitlabhq,folpindo/gitlabhq,michaKFromParis/gitlabhq,yonglehou/gitlabhq,rumpelsepp/gitlabhq,sonalkr132/gitlabhq,johnmyqin/gitlabhq,stoplightio/gitlabhq,joalmeid/gitlabhq,NARKOZ/gitlabhq,NARKOZ/gitlabhq,bigsurge/gitlabhq,fpgentil/gitlabhq,jvanbaarsen/gitlabhq,folpindo/gitlabhq,manfer/gitlabhq,lvfeng1130/gitlabhq,mente/gitlabhq,openwide-java/gitlabhq,pkallberg/tjenare,htve/GitlabForChinese,Razer6/gitlabhq,cinderblock/gitlabhq,NARKOZ/gitlabhq,initiummedia/gitlabhq,jirutka/gitlabhq,initiummedia/gitlabhq,luzhongyang/gitlabhq,ferdinandrosario/gitlabhq,eliasp/gitlabhq,whluwit/gitlabhq,sue445/gitlabhq,cncodog/gitlab,dwrensha/gitlabhq,pulkit21/gitlabhq,mavimo/gitlabhq,since2014/gitlabhq,tempbottle/gitlabhq,windymid/test2,MauriceMohlek/gitlabhq,kemenaran/gitlabhq,theonlydoo/gitlabhq,initiummedia/gitlabhq,sue445/gitlabhq,yonglehou/gitlabhq,chenrui2014/gitlabhq,allistera/gitlabhq,julianengel/gitlabhq,Kambda/mobbr-gitlabhq,youprofit/gitlabhq,MauriceMohlek/gitlabhq,wangcan2014/gitlabhq,stoplightio/gitlabhq,fendoudeqingchunhh/gitlabhq,LytayTOUCH/gitlabhq,martijnvermaat/gitlabhq,mathstuf/gitlabhq,louahola/gitlabhq,yuyue2013/ss,windymid/test2,daiyu/gitlab-zh,fearenales/gitlabhq,jrjang/gitlab-ce,ayufan/gitlabhq,rhels/gitlabhq,folpindo/gitlabhq,NKMR6194/gitlabhq,copystudy/gitlabhq,wangcan2014/gitlabhq,OlegGirko/gitlab-ce,OtkurBiz/gitlabhq,SVArago/gitlabhq,luzhongyang/gitlabhq,axilleas/gitlabhq,mrb/gitlabhq,jirutka/gitlabhq,atomaka/gitlabhq,yulchitaj/TEST3,mr-dxdy/gitlabhq,gorgee/gitlabhq,H3Chief/gitlabhq,liyakun/gitlabhq,martinma4/gitlabhq,luzhongyang/gitlabhq,shinexiao/gitlabhq,darkrasid/gitlabhq,Kambda/Mobbr,tim-hoff/gitlabhq,chenrui2014/gitlabhq,ibiart/gitlabhq,mr-dxdy/gitlabhq,openwide-java/gitlabhq,delkyd/gitlabhq,Devin001/gitlabhq,fearenales/gitlabhq,hzy001/gitlabhq,Devin001/gitlabhq,martinma4/gitlabhq,pulkit21/gitlabhq,pkgr/gitlabhq,allistera/gitlabhq,zBMNForks/gitlabhq,szechyjs/gitlabhq,sekcheong/gitlabhq,johnmyqin/gitlabhq