From df2e7ee5ec7825b843da17c11c01451f47731a4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacek=20=C5=81api=C5=84ski?= Date: Sat, 17 Oct 2026 23:09:56 +0200 Subject: [PATCH] Fix the panel at the instance's address without a trailing slash Under a path base, a signed-in user got 500 at the instance's address without the trailing slash (kododo.dev/polyglot/demo); with it, the panel opened. Way.Shell 2.1.1 handles the empty request path there. --- src/Directory.Packages.props | 2 +- src/Polyglot.Web.Tests/AuthTests.cs | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Directory.Packages.props b/src/Directory.Packages.props index 9d5b91d..e2bed8e 100644 --- a/src/Directory.Packages.props +++ b/src/Directory.Packages.props @@ -8,7 +8,7 @@ - + diff --git a/src/Polyglot.Web.Tests/AuthTests.cs b/src/Polyglot.Web.Tests/AuthTests.cs index a077bd2..72f4013 100644 --- a/src/Polyglot.Web.Tests/AuthTests.cs +++ b/src/Polyglot.Web.Tests/AuthTests.cs @@ -122,6 +122,9 @@ public async Task UnderPathBase_CanSignInAndUseEditor() Assert.Equal(HttpStatusCode.Redirect, login.StatusCode); Assert.Equal("/polyglot/", login.Headers.Location?.OriginalString); Assert.Equal(HttpStatusCode.OK, api.StatusCode); + // The panel at the instance's address, with and without the trailing slash (without it the path is empty). + Assert.Equal(HttpStatusCode.OK, (await client.GetAsync("/polyglot/")).StatusCode); + Assert.Equal(HttpStatusCode.OK, (await client.GetAsync("/polyglot")).StatusCode); } [Fact]