ho-nl / magento2-Ho_Templatehints

H&O Magento 2 Advanced Template Hints module
BSD 2-Clause "Simplified" License
269 stars 68 forks source link

Wrong URL in the remote call (Docker) #57

Open r-martins opened 2 years ago

r-martins commented 2 years ago

When running in docker, the project is mapped to different folders. It woul be nice to be able to define the root magento path.

Example: In my case, the remote call points to http://localhost:63342/api/file//var/www/html/vendor/magento/module-sales/view/adminhtml/templates/order/view/info.phtml The correct one would be http://localhost:63342/api/file/src/vendor/magento/module-sales/view/adminhtml/templates/order/view/info.phtml

Note there's no extra / and the paths are different in the project. It's impossible to predict, but making it configurable would help.

PS: Congratulations for the amazing work with the module. It helps a lot.