[PR #5147] Add automatic trimming for domain names and forward host fields #4074

Open
opened 2026-02-26 08:33:02 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/NginxProxyManager/nginx-proxy-manager/pull/5147
Author: @vishnugt
Created: 1/14/2026
Status: 🔄 Open

Base: developHead: develop


📝 Commits (1)

  • c25c4e2 Add automatic trimming for domain names and forward host fields

📊 Changes

2 files changed (+5 additions, -1 deletions)

View changed files

📝 frontend/src/components/Form/DomainNamesField.tsx (+1 -1)
📝 frontend/src/modals/ProxyHostModal.tsx (+4 -0)

📄 Description

Adds automatic trimming to domain names and forward host fields to prevent leading/trailing spaces.

I spent an hour debugging why my forwarding wasn't working... twice. Turns out I had invisible spaces in my container names 🤦‍♂️

Now the fields automatically trim spaces when you add domains or click away from the forward host field.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/NginxProxyManager/nginx-proxy-manager/pull/5147 **Author:** [@vishnugt](https://github.com/vishnugt) **Created:** 1/14/2026 **Status:** 🔄 Open **Base:** `develop` ← **Head:** `develop` --- ### 📝 Commits (1) - [`c25c4e2`](https://github.com/NginxProxyManager/nginx-proxy-manager/commit/c25c4e2c7e7cc2ac2edbeb23e2db22659bfc5511) Add automatic trimming for domain names and forward host fields ### 📊 Changes **2 files changed** (+5 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/components/Form/DomainNamesField.tsx` (+1 -1) 📝 `frontend/src/modals/ProxyHostModal.tsx` (+4 -0) </details> ### 📄 Description Adds automatic trimming to domain names and forward host fields to prevent leading/trailing spaces. I spent an hour debugging why my forwarding wasn't working... twice. Turns out I had invisible spaces in my container names 🤦‍♂️ Now the fields automatically trim spaces when you add domains or click away from the forward host field. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#4074
No description provided.