Ghost
Ghost copied to clipboard
Ghost URL cannot be set to an ipv6 address
Issue Summary
The URL cannot be set to an ipv6 address, because ghost percent encodes the bracketed portion of the host.
Steps to Reproduce
Start a docker container with the url set to a properly formatted ipv6 address like -e url='http://[ffff::]:2368'. Notice that the Home and About links at the top are not clickable. Inspect them and see that the URL is badly formatted: the host portion should not be percent encoded. If we edit the IP to be literal brackets the link will work.

Ghost Version
4.47.4
Node.js Version
v14.19.3
How did you install Ghost?
docker
Database type
SQLite3
Browser & OS version
No response
Relevant log / error output
No response
Code of Conduct
- [X] I agree to be friendly and polite to people in this repository
Happy to accept a PR to fix this.