yasglobal / make-paths-relative

This powerful plugin simplifies website maintenance by automatically converting absolute paths (URLs) for resources like links, scripts, stylesheets, and images to relative paths. This ensures your website functions flawlessly regardless of its location on a server or domain.
https://wordpress.org/plugins/make-paths-relative/
GNU General Public License v3.0
4 stars 1 forks source link

HREF Pointing to Root Becomes Empty String #6

Closed TheRealMikeD closed 4 months ago

TheRealMikeD commented 2 years ago

I noticed that if there are links pointing back to the site root, the href attribute of these links is set to an empty string: <a href="">

The expected behavior would be that it would be a single forward slash: <a href-"/">

As a result of this problem, such a link which is intended as a link to the site root ends up functioning as a link to the current page.