selectively remove DOCROOT from asset file, depending on use

My testing for 96b5de2 was not thorough enough. This solution only does it when it's going to be a URL.