Manual:$wgThumbPath

Details
The base path for thumb_handler.php. This is used to interpret the request URL for requests to thumb_handler.php that do not match the base upload path.

This was introduced in MediaWiki 1.36.0 . It was backported to 1.35.0 .