#WordPressPlugin: Lets you make a WordPress page (or other content type) link to an external URL of your choosing, instead of its WordPress URL.
GNU General Public License v2.0
110
stars
46
forks
source link
Error in wp-admin when setting the URL to just a forward slash #147
Open
daveherman71 opened 3 years ago
I have some pages on my site that I need to redirect to the home page (due to legacy SEO).
However redirecting to "/" causes an error in wp-admin.
This is the function where the error occurs:
My proposed fix is to first check the length of the string before checking if it is protocol-relative, as follows: