Adding proper root context to URL