Trying to use export-import to migrate a website with 100+pages. I thought using relative URLs would simplify the process. Using a blank (default) URL and the new URL both failed.
By manually deleting the duplicate /wp-admin, I was able to deactivate the plugin. But I could see no changes to any of the URLs.
Using WP 6.2.2 with Twenty Twenty-Three theme.
]]>Hi team!
Thank you for your helpfull plugin! You did an excellent job.
I faced with issue on multiple xml sitemaps of the same post type.
On the first-of-kind file all is ok, plugin keeps links absolute (example https://gmk-nasos.ru/product-sitemap.xml)
But second and all other generates with relative urls.
https://gmk-nasos.ru/product-sitemap2.xml
https://gmk-nasos.ru/product-sitemap5.xml
Looking for a solution, please help.
]]>Dear MPR team,
It appears the plugin isn’t compatible with WordPress 6.1 and the upgrade completely breaks the website. I had to rollback to WordPress 6.0.3.
Are you planning to update the plugin so it is compatible with WordPress 6.1?
Thank you.
Best regards,
]]>I have a clean WordPress install using just the Twenty Twenty-Two Version: 1.2 theme.
The only plugin installed is yours, ‘Make Paths Relative’.
In settings I checked the box for ‘Image Paths’.
Then changed the WordPress > Settings > General > Timezone from ‘London’ to ‘Los Angeles’
Then the following error appears:
One or more database tables are unavailable. The database may need to be repaired.
Upon investigation in myPHPAdmin we discovered that the _options table field ‘option_name’ > ‘siteurl’ and ‘home’ were blank where the websites URL should be.
Once, we manually put in the URL into these fields, went back to the site, and refreshed; it worked again until we changed the timezone back again.
We also tested this on different web hosts, servers, and with different themes and were able to reproduce the behaviour.
]]>Hi there,
Firstly – thanks for creating this plugin – it works well for us!
We have a wordpress site hosted with wordpress.com – and there appears to be a conflict with Jetpack preventing some of the WP-Admin functions to work normally.
Specifically – when we try to access wordpress.com/posts/[our-website] – none of the posts (live or drafted) show up. Note that if we access the post manager via the classic admin (ie [our-website]/wp-admin/edit.php) – it works as expected.
We know that this issue is caused by your plugin – because it is resolved when we disable the plugin.
Are you aware of any conflicts that this plugin may be causing with jetpack / wordpress.com?
Thanks for your help!
]]>Hey,
I just noticed this plugin changes the value for the rel canonical tag. Is there a way to make it ignore it?
I don’t think there is a case where it is a good thing to make that one relative.
<link rel="canonical" href="https://siteurl.com" />
becomes
<link rel="canonical" href="/" />
and it makes the tag useless.
Hello,
In the WP installation I have included absolute links at the beginning.
Now after everything was developed I want to switch to relative URLs.
How can I do this?
I have uploaded 120 articles and all of them have internal links + links in the navigations are also not updated.
Thanks!
]]>Hello,
When using Yoast SEO my Twitter preview images do not show on Twitter. It either does not show a <meta name=”twitter:image” …> at all (when viewed form the reverse proxy) or it does not convert the URL to a relative path (usually when viewed from the true URL rather than the reverse proxy).
Eg.
<meta name=”twitter:image” content=”https://foo.bar/wp-content/uploads/2022/01/foobar.png” />
Need it to always show and look like this:
<meta name=”twitter:image” content=”/wp-content/uploads/2022/01/foobar.png” />
Thanks in advance!!!
]]>Hello,
This is a great plugin so thanks! The one area it does not make paths relative is for search result pages. Is there a configuration, filter or function to use that will allow me to use a relative path /?s=cheese
thus allowing the reverse proxy to do what we want it to do?
So far I tried fiddling with a solution involving the template_redirect
hook via theme functions.php but have not had any luck yet. I also changed the search <form>
template to action="/"
and that did not work either. Any help is greatly appreciated. Thanks in advance!
Hi,
There seems to be a compatibility issue with WPForms (1.7.2) with v.1.3.0. The links sent with WPForms are sent as relative.
If I roll-back to version 1.2.1, the links sent are full.
]]>Hi,
When upgrading from 1.1.2 to 1.3.0 my website had issues with sitemap urls, scripts and images being relative (with no checkbox selected).
I managed to fix this by comment the line for apply filter “clean_url”.
This should be affecting others as i see new topics on forum today.
Hope this helps you.
BR,
António Ramos
Hi there.
We have recently noticed that the option to not make relative path for CSS and JS URLs is not working as expected.
I have the 2 check-boxes under “Make Scripts and Styles Relative” unchecked. However – in the code – we can see that CSS and JS files are being stripped of the domain etc (ie they are showing relative, not absolute like we would expect).
Note that this had worked in the past, however recently it stopped working.
Is this a bug from a recent update of the plugin or maybe a known conflict?
Thanks for your help!
]]>It appears this plugin also impacts the backend urls, and is messing with our ability to access the admin panel of wordpress.
What is the best way to make it so there is an exception for anything requested within the wp-admin directory?
]]>In Google search console, I get an error on my submitted sitemaps because the image tags contain relative path. Is there a way you can fix that?
]]>Exception should be made for WooCommerce exported CSV file.
It should be non-relative URL in the exported CSV file, so that it can be imported later.
]]>Please add functional in your plugin for “esc_url()” function:
public function clean_url( $good_protocol_url, $original_url, $_context ) {
return str_replace(array('https://' . $_SERVER['HTTP_HOST'], 'https://' . $_SERVER['HTTP_HOST']), '', $good_protocol_url);
}
add_filter( 'clean_url', array( $this, 'clean_url' ), 100, 3 );
]]>
Hi,
I installed the plugin and it worked fine before migrating the site to different server. After migrating it still points back to old server. How do I make sure the WordPress Address (URL) and the Site Address (URL) refers to the server the site sits on?
Hi,
I have a problem with your plugin and Sassy Social Share. When I want share a post Sassy share a relative url. Did you have an idea how i can fix that to have relative url on post but absolute url when I share? Maybe with a filter but I dont know how I can correctly do a filter for the plugin.
The page of plugin Sassy social share –> https://fr.www.ads-software.com/plugins/sassy-social-share/
Thanks in advance
]]>Hello,
Since the update of the yoast SEO plugin to version 16.4, there is a conflict with “Make Paths Relative” and we can no longer edit posts.
The following error message is displayed :`
TypeError: Cannot read property 'toLowerCase' of undefined
at o.value (https://..../wp-content/plugins/wordpress-seo/js/dist/externals/socialMetadataForms-1640.js:1:11100)
at Ie (https://..../wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:104:8)
at rh (https://..../wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:103:334)
at zj (https://..../wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:228:490)
at Th (https://..../wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:152:223)
at tj (https://..../wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:152:152)
at Te (https://..../wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:146:151)
at https://..../wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:61:68
at unstable_runWithPriority (https://..../wp-includes/js/dist/vendor/react.min.js?ver=16.13.1:25:260)
at Da (https://..../wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:60:280)
Please help
Thanks in advance
]]>Hello,
Since the update of the yoast SEO plugin to version 16.4, there is a conflict with “Make Paths Relative” and we can no longer edit posts.
The following error message is displayed :`
TypeError: Cannot read property 'toLowerCase' of undefined
at o.value (https://..../wp-content/plugins/wordpress-seo/js/dist/externals/socialMetadataForms-1640.js:1:11100)
at Ie (https://..../wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:104:8)
at rh (https://..../wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:103:334)
at zj (https://..../wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:228:490)
at Th (https://..../wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:152:223)
at tj (https://..../wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:152:152)
at Te (https://..../wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:146:151)
at https://..../wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:61:68
at unstable_runWithPriority (https://anzf-site.netcreations.tn/wp-includes/js/dist/vendor/react.min.js?ver=16.13.1:25:260)
at Da (https://..../wp-includes/js/dist/vendor/react-dom.min.js?ver=16.13.1:60:280)
Please help
Thanks in advance
]]>Greetings – Are the changes done as the pages/assets render or can we run it and then uninstall it?
]]>Hi,
I’m using your plugin and it is most useful. But on one page, I would like to disable it, I have a specific problem. I made a link:
href=”localexplorer:C:\Images”>C:\Images
(this localexplorer is some add-on I’m using to open windows explorer from browser, I know it is a security problem, but I’m using it locally as some intranet thing), but every time this link is converted in site_address\Images. I would like to prevent that on that specific page. Is it possible?
]]>Hi,
Your plugin saved myn project.
Since i have a headless setup with my frontend on a different location:
One improvement would be to actually go further then ‘relative’
I add a constant to ‘class-make-relative.php’ on line 123
$relative_link = FRONTEND_URL.$link;
And replace FRONTEND_URl with my fronted url
Now I can access my posts and internal links (within the content editor) at all times
I was first thinking of changing the site_path, but this breaks the wp-json, and my wordpress theme which contain custom rest controllers
]]>Is it still being maintained?
I find it listed on your website but its compatibility info here hasn’t been updated for a year.
I wouldn’t want to keep using an abandoned plug-in.
]]>Hello, I have redirected my site to a personal server.
Everything is working fine, except observing the translation links in the menu I realize that I am still redirecting to the old domain. I read an old ticket that says I had a problem with polylang? Is this plug-in incompatible with [Make Paths Relative] ?
Thank you in advance for your return.
Best regards
Is it possible to prepend a string to the start of the relative path?
For instance, instead of starting with: /some-path, it would start with /added/some-path
Thanks
I am only trying to create relative URLs in Menu > Custom Links. Can this plugin achieve that?
Currently, WordPress automatically prepends the full absolute URL to Custom Link in the menu.
]]>I installed the plugin on my site to make it easier to use SSL as it had many URLs without “https” in the files. But a problem arose. When using the sharing commands (Twitter, Facebook, etc.) the relative URL appears, without the website domain, which causes error. How can I avoid this? Thanks.
]]>I am using the Pantheon Workflow (Dev > Test > Live) and Make Paths Relative (MPR) is super useful to keep links to images, and urls relative from an environment to another.
Recently I found an issue, however.
When MPR is activated for all content types, then the Sitemaps generated by Yoast plugin will contain only “relative” paths which are a serious issue for SEO. Indeed Google guidance for sitemaps recommends full absolute URLs, and not relative URLs.
I saw that a previous release supposedly tackled this issue, but the benefit is not visible in the latest release of MPR.
Replication steps :
Install Yoast, activate it and enable Sitemap
Install MPR, activate it, and check all to make paths relative
Go to your sitemaps URL
Actual result: Sitemaps urls are relative
Expected result: Sitemaps urls should be absolute
Hi, this plugin works really well. However, today I received a comment saying “your RSS feed is only including the article paths instead of absolute URLs, like this: <link>/2019/the-html-treasure-hunt/</link>. Which confuses my RSS reader (NetNewsWire 3!) to the point that it passes just “/2019/the-html-treasure-hunt/” to the browser, which understandably doesn’t know what to do next.”
I’m assuming that the plugin is also making RSS links relative. I’ve looked in the “Exclude Posts” settings (/wp-admin/admin.php?page=make-paths-relative-exclude-posts) but it isn’t clear to me which (if any) I should check to allow absolute URLs in the RSS feed.
]]>