Skip to content

Auto-split pasted URLs into scheme/host/port on forward host fields#5715

Open
Grasfer wants to merge 1 commit into
NginxProxyManager:developfrom
Grasfer:upstream-pr/paste-to-split
Open

Auto-split pasted URLs into scheme/host/port on forward host fields#5715
Grasfer wants to merge 1 commit into
NginxProxyManager:developfrom
Grasfer:upstream-pr/paste-to-split

Conversation

@Grasfer

@Grasfer Grasfer commented Jul 18, 2026

Copy link
Copy Markdown

Why

A very common workflow when adding a proxy host is copying a service's URL straight from the browser — e.g. http://192.168.5.150:8096 — and pasting it into the Forward Hostname / IP field. Today the whole string lands in the host field, and the user has to manually delete the scheme, move the port to the port field, and set the scheme dropdown.

With this change, pasting a full URL into the Forward Hostname / IP field (on the proxy host form and on custom locations) parses it and distributes the parts: the scheme dropdown and port field are filled, and only the bare hostname/IP stays in the host field. Pasting a plain hostname or IP behaves exactly as before — the split only triggers when the pasted text parses as a URL with a scheme.

No API or backend changes; frontend-only. Unit tests included for the URL parsing module (ForwardUrl.test.ts).

Full disclosure: this was AI-written (boxes checked below) — I made it because I wanted the feature myself. It's been running on my own NPM instance and works for my day-to-day use, but that's the extent of the real-world testing, so review accordingly.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Code refactoring
  • API changes
  • Performance improvement
  • Test addition or update

AI Usage

  • AI was used to write this
  • AI was used to review this

Pasting e.g. http://192.168.5.150:8096 into the Forward Hostname / IP
field of the proxy host form (and custom locations) now fills the
scheme and port fields and leaves just the host, instead of dumping
the whole URL into the host field.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Grasfer

Grasfer commented Jul 18, 2026

Copy link
Copy Markdown
Author

As the AI mentioned i just wanted these features myself, i do not know coding at all, but it works as i wanted on my own system.
Feels bad(i dont know why) doing ai pr's but maybe someone else find this useful.

@nginxproxymanagerci

Copy link
Copy Markdown

Docker Image for build 1 is available on DockerHub:

nginxproxymanager/nginx-proxy-manager-dev:pr-5715

Note

Ensure you backup your NPM instance before testing this image! Especially if there are database changes.
This is a different docker image namespace than the official image.

Warning

Changes and additions to DNS Providers require verification by at least 2 members of the community!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant