mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-21 09:21:15 -05:00
[PR #2603] [MERGED] fix: prevent resource from being created with dashboard's domain to avoid redirect loop #9835
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fosrl/pangolin/pull/2603
Author: @Fizza-Mukhtar
Created: 3/5/2026
Status: ✅ Merged
Merged: 3/8/2026
Merged by: @oschwartz10612
Base:
main← Head:fix/prevent-dashboard-domain-conflict-2595📝 Commits (2)
1a2069afix: prevent resource creation with dashboard domain to avoid redirect loop4cfcc64fix: use config instead of process.env for dashboard URL check📊 Changes
3 files changed (+29 additions, -1 deletions)
View changed files
📝
server/routers/resource/createResource.ts(+14 -0)📝
server/routers/resource/updateResource.ts(+14 -0)📝
src/app/[orgId]/settings/resources/proxy/create/page.tsx(+1 -1)📄 Description
Community Contribution License Agreement
By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.
Fixes #2595
Problem
Creating or updating a resource with the same subdomain as the dashboard caused an endless HTTP 302 redirect loop.
Fix
createResourceandupdateResourceto return a conflict error if the resource's full domain matches the dashboard URL🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.