Admin panel ignores custom port in URLs
Current Behavior
When the Pterodactyl Panel is accessed through a non-standard port, URLs generated within the Admin section omit the port number. For example, when the panel is accessed through: http://123.456.789:2548/ the Admin section itself loads correctly: http://123.456.789:2548/admin However, navigating to pages through the Admin sidebar generates URLs without the configured port. For example, clicking Servers generates: http://123.456.789/admin/servers instead of: http://123.456.7892548/admin/servers The same issue occurs with certain forms/actions in the Admin panel. For example, submitting a form such as changing the panel name can result in a URL that also omits :2548. Because the generated URL points to the default HTTP port instead of the port where the panel is running, the browser cannot reach the intended page. The regular/user panel does not appear to have this issue. For example: http://123.456.789:2548/server/ff319eec correctly navigates to: http://123.456.789:2548/server/ff319eec/files This suggests that the issue is specific to URL generation/navigation in the Admin section.
Expected Behavior
All URLs generated by the Pterodactyl Admin panel should preserve the port used to access the panel. If the panel is accessed through: http://123.456.789:2548/ then Admin routes should preserve :2548, for example: http://123.456.789:2548/admin http://123.456.789:2548/admin/servers and other Admin navigation links and form actions should also retain the same port. The behavior should be consistent with the regular/user panel, where generated URLs correctly preserve the non-standard port.
Steps to Reproduce
- Configure the Pterodactyl Panel to run on a non-standard HTTP port, for example 2548.
- Access the panel using: http://123.456.789:2548/
- Navigate to the Admin section: http://123.456.789:2548/admin
- Confirm that the Admin dashboard loads correctly.
- In the Admin sidebar, click Servers (or another Admin page).
- Observe the URL generated by the browser.
- The browser navigates to: http://123.456.789/admin/servers
- The expected URL would be: http://123.456.789:2548/admin/servers
- The same issue can also be reproduced with certain Admin forms/settings. Submit an affected form and observe that the resulting URL also omits :2548.
Panel Version
1.14.1
Wings Version
1.13.1
Games and/or Eggs Affected
No response
Docker Image
No response
Error Logs
Is there an existing issue for this?
- I have searched the existing issues before opening this issue. I understand that maintainers may close this issue without communication if I have not provided sufficient information.
Source: pterodactyl/panel