Can't login to Netlify CMS dashboard from development branch

I have branch deploys working for my development branch. But when I navigate to admin the CMS does not load.

I get the Netlify CMS login page. It asks me to login with Gitlab, I click it, a popup opens that says “AUTHORIZED”, and then nothing happens.

If I try to access the CMS from the production branch it logs me in with Netlify Identity, but that CMS config is old, I need to view and test the development branch config.

Try setting your branch to development:

  name: gitlab
  repo: owner-name/repo-name
  branch: development

Yep, I already set that

It’s working now!

I think it’s because I’ve set the site_url and logo_url properties. And there values did not match the branch deployed url.