I want to use absolute URLs when creating custom menu links for my WordPress menu, but when WordPress renders the menu it removes the domain from the href data and simply renders them links as relative URLs.
For example, I have a custom link in a menu that is
https://www.domain.com/about/. When this menu is rendered on the site, the link href has
https://www.domain.com/ stripped from it setting the href to
My guess is that WordPress is doing this, because the domain in the absolute URL for the custom menu item matches the site URL of the WordPress installation. I'd like for it to not do this and just render the href data as the absolute URL.
I've looked through various WordPress menu related actions and filters, but cannot seem to find anything that allows me to override this before or make a final check and correction to the href data prior to it being rendered as HTML.
Any pointers or suggestions on how to do this would be greatly appreciated!