georgringer / t3monitoring

Monitoring service of TYPO3 extensions
GNU General Public License v2.0
47 stars 38 forks source link

Relative path to jquery.dataTables.min.js library #198

Closed instruccionesaldorso closed 2 years ago

instruccionesaldorso commented 3 years ago

Using master version, I experience that, when BE module "T3 Monitor" is called, the next JavaScript error happens over the console:

GET https://example.com/typo3/typo3conf/ext/t3monitoring/Resources/Public/JavaScript/jquery.dataTables.min.js?bust=1631690811 net::ERR_ABORTED 404

It seems the relative path to the file adds "typo3" as the JavaScript should be loaded over the BE and relative path is related to "typo3/" url instead of being absolute and reference to the project root public folder.

Isn't it possible that these lines:

https://github.com/georgringer/t3monitoring/blob/master/Classes/Controller/BaseController.php#L91 https://github.com/georgringer/t3monitoring/blob/master/Classes/Controller/BaseController.php#L92

should add "/" at the beginning of the string, before $fullJsPath ?

hoermannklaus commented 3 years ago

I also encountered the same error. Due to this error it is not possible to sort the backend table of all clients. With your fix the DataTable library gets loaded correctly again, and sorting the clients is possible again. How about making a PR?

christophlehmann commented 3 years ago

Will be fixed with https://github.com/georgringer/t3monitoring/pull/204/commits/5c7c154c10ac09aee572bac57bd52827f0f33cfe