Improving the ability to change relative paths according to path to root

Allows url with params (file.css?param=sample)