Not that I know, Generally speaking, WordPress simply doesn’t generate relative urls – only full ones. What’s the problem with using full urls?
Thread Starter
TimTee
(@timtee)
thanks, though these aren’t generated, ones I enter as a custom link. It adds it.
It isn’t that it doesn’t work, but generally when I build a site with menu items to pages within the site, I don’t use fully qualified urls for all menu items so it seemed odd this isn’t an option.
thanks!
When using WordPress, you really have to get used to using full urls. Because it uses generated content dynamically from a database via a templating system, using relative urls will produce very unpredictable results.
I’m working locally and it would be great to have relative links for some of my “custom links”.
Currently I have to manually change all my custom links to ensure they don’t point to the local drive when I go live.
ie. change the link from locall888/mylocalsite/page to http://www.mysite.com/page.
It’s a small pain but a pain that could easily be avoided with a relative link. : (
It’s possible to provide a relative url on custom menus
Enter your url as “/relative_url” and it’ll go to http://www.domain.com/relative_url