Redirected to a 404 on /Account/Login when pressing login

I have…

I’m submitting a…

  • [ ] Regression (a behavior that stopped working in a new release)
  • [x] Bug report
  • [ ] Performance issue
  • [ ] Documentation issue or request

Current behavior

When pressing the login button on the home page the popup URL is

http://localhost:5001/Account/Login?ReturnUrl=%2Fidentity-server%2Fconnect%2Fauthorize%3Fclient_id%3Dsquidex-frontend%26redirect_uri%3Dhttp%3A%2F%2Flocalhost%3A5001%2Flogin;%26response_type%3Dcode%26scope%3Dsquidex-api%20openid%20profile%20email%20permissions%26state%3Da5286d2f13d443cba252add8c850ad44%26code_challenge%3DJPHI5D8nl5nxQujeuGqbsNlIcRA7bc5b00F82_nqJXg%26code_challenge_method%3DS256%26response_mode%3Dquery

Which returns a 404. However if I change the URL to http://localhost:5001/identity-server/Account/Login I am presented with the Login screen.

My appsettings.json url configuration is as shown below

	"urls": {
		"baseUrl": "http://localhost:5001",
		"basePath": "",
		"enforceHttps": false,
		"enforceHost": false,
		"knownProxies": [],
		"enableForwardHeaders": true,
		"trustedHosted": []
	},

Expected behavior

The login button would create a popup showing the login screen.

Minimal reproduction of the problem

Using the latest commit on master.

Environment

App Name:

  • [x] Self hosted with docker
  • [x] Self hosted with IIS
  • [ ] Self hosted with other version
  • [ ] Cloud version

Version: [VERSION]

Browser:

  • [x] Chrome (desktop)
  • [ ] Chrome (Android)
  • [ ] Chrome (iOS)
  • [ ] Firefox
  • [ ] Safari (desktop)
  • [ ] Safari (iOS)
  • [ ] IE
  • [ ] Edge

Others:

Which version do you use? It sounds like a master version and something that is already fixed.

Hi Sebastian,

I’m currently using the latest commit on master as some of the features I require aren’t in a released version yet.

Thanks!

Okay, I am gonna have a look again. Are you using a subpath? e.g. yourdomain.com/squidex

I have fixed it in the master.

2 Likes

Thanks for swift reply and fix Sebastian!

1 Like