Issue with u() and localhost port

No, but I use this on my XAMPP dev system every day, e.g. an extended version of https://forum.getkirby.com/t/howto-working-with-contextual-links-to-the-panel/1566.