account for rails path in URLs