Since location is a Locator, you don't need to get the url. You can either get unicode(component.location) or just send the location and let it print itself into the template. The result will be a url w/o the "edx://" prefix.