Fix location.url [LMS-2786]

https://edx-wiki.atlassian.net/browse/LMS-2786