Set up a Multisite installation that uses subdirectories
Visit the Redirects menu on one of the subdirectory sites on the network
Add a redirect from /foo and publish it (the redirect destination is not relevant)
Observe that the "Visit" link for the redirect listed on the Redirects screen is relative to the main site, not relative to the current site
The problem is caused because the href attribute points to the raw "from" value, which causes the link to be a root-relative link. The link should be passed through home_url().
Steps to reproduce:
/foo
and publish it (the redirect destination is not relevant)The problem is caused because the
href
attribute points to the raw "from" value, which causes the link to be a root-relative link. The link should be passed throughhome_url()
.