Fix modinput url split code to work with an IPv6 address

this uses the same code as custom search commands