Ghost icon indicating copy to clipboard operation
Ghost copied to clipboard

Ghost URL cannot be set to an ipv6 address

Open nivekuil opened this issue 3 years ago • 1 comments

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. image

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

nivekuil avatar May 19 '22 10:05 nivekuil

Happy to accept a PR to fix this.

ErisDS avatar May 23 '22 13:05 ErisDS