Ever since I started using MODx, I have always used clean URLs with the "Use friendly alias path" set to "Yes".
Also, I have been using the "Rewrite browser paths" set to "Yes" to keep relative paths rather than absolute ones.
I had never had a problem with that or noticed anything before I used the DirectResize plugin. My images have relative paths, which the plugin’s default config require. The first time I save the document, the plugin generates the resized image and points toward the cached, resized images. But if I edit the document later, all my images have an absolute path, breaking the cached resized image
When I dug into the MODx configuration, I found a warning I never paid attention to :
NOTE: When setting this option to ’Yes’ (turning on alias paths), reference items (such as images, css, javascripts, etc) using the absolute path: e.g., ’/assets/images’ as oppose to ’assets/images’. By doing so you will prevent the browser (or web server) from appending the relative path to the alias path.
This explained the relative path turning into absolute ones, but why oh why isn’t it possible to have both friendly alias path AND rewrite browser paths ?