Auto-link correction and custom upload folders

Hi there,

I am using custom paths for the upload folder in Wordpress, e.g.:

https://zahnarzt-helden.de/wp-content/uploads/presse/somefile.pdf [404]

The /presse/ part behind /uploads/ is a custom folder giving us a more user-friendly URL hierarchy compared to the Wordpress default of /uploads/2018/01/somefile.pdf

The issue is this: PRO theme is auto-correcting links in in text and other elements. Both the protocol and domain will be replaced with a path like ../current-page/uploads/presse/somefile.pdf. Adding current-page of course leads to Error 404. Even links starting with // or relative ones with / will get corrected.

Is there a way to stop PRO from auto-correcting the links? Or another advice?

Thanks!

Hello @Zahnarzt-Helden,

Thanks for asking. :slight_smile:

Please note that Pro Theme does not changes the URL structure of media files. WordPress uses absolute URL and our theme simply inherits the URL supplied my WordPress. We don’t make any changes to URL structure.

However, as per your post it seems relative URL is being added. It’s also mentioned that you have changed the URL structure. In that regards I am not sure to what extent the customisation has been made as relative URL is not the default feature offered by WordPress and Pro Theme. You need to look into the matter as this falls outside the scope of support we can offer. You also have the option to taking a help from a developer. To learn about the difference between Absolute and Relative URL, please take a look at following resource:

https://www.seoclarity.net/resources/knowledgebase/difference-relative-absolute-url-15325/
https://kb.iu.edu/d/abwp

Thanks for understanding.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.