diff --git a/packages/ember-routing/lib/location/history_location.js b/packages/ember-routing/lib/location/history_location.js index 6f754ce610a..a9ec9a162cf 100644 --- a/packages/ember-routing/lib/location/history_location.js +++ b/packages/ember-routing/lib/location/history_location.js @@ -182,6 +182,9 @@ export default EmberObject.extend({ baseURL = baseURL.replace(/\/$/, ''); } + // Sanitize double slashes in URL + url = url.replace(/[/]{2,}/, '/'); + return baseURL + rootURL + url; },