~netlandish/links-dev

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH links] Fixing logic typo in last domain redirect change

Details
Message ID
<20250829133644.23462-1-peter@netlandish.com>
Sender timestamp
1756453002
DKIM signature
missing
Download raw message
Patch: +1 -1
---
 domain/middleware.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/domain/middleware.go b/domain/middleware.go
index 261ce4b..efe2e84 100644
--- a/domain/middleware.go
+++ b/domain/middleware.go
@@ -148,7 +148,7 @@ func DomainRedirect(next echo.HandlerFunc) echo.HandlerFunc {
		// Remove :PORT if present
		host := strings.SplitN(mainDomain, ":", 2)[0]
		domain := ForContext(c.Request().Context())
		if strings.EqualFold(domain.LookupName, host) &&
		if !strings.EqualFold(domain.LookupName, host) &&
			domain.Level == models.DomainLevelSystem {
			// XXX Populate this from links.InvalidSlugs or better yet, c.Echo().Routes()
			redirectPaths := []redir{
-- 
2.49.1
Details
Message ID
<DCEYB8LU0BV2.3ATDCVAAEV14T@netlandish.com>
In-Reply-To
<20250829133644.23462-1-peter@netlandish.com> (view parent)
Sender timestamp
1756453089
DKIM signature
missing
Download raw message
Applied.

To git@git.code.netlandish.com:~netlandish/links
   995a0d7..c877de1  master -> master
Reply to thread Export thread (mbox)