Fix for setting base path url , instead of resource url