Fix document path with urlEngine