‘posts’ table should not store the absolute image path

Well, after a little research I realized that it is an (inconvenient) feature of WordPress to store the absolute path of the images and other files, something that I completely disagree with.

In any case, I discovered this plugin https://wordpress.org/plugins/root-relative-urls/.

It does not fix the urls of files already inserted, but it corrects those of the new files.

For a new installation, I understand then that this is an essential plugin.

In the meantime, I’ll try to figure out how to fix all the fields of all tables that contain an absolute path.