Change pattern ignores absolute urls

Because sometimes the root directory is set to one directory but you
need to load an asset from another directory, it doesn’t cause an error.