We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d3ce8d commit 947d419Copy full SHA for 947d419
app/locations/trailing-history.js
@@ -14,6 +14,8 @@ export default HistoryLocation.extend({
14
15
export function formatURL(url) {
16
let modifiedURL = new URL(url, 'http://example.com');
17
- modifiedURL.pathname += '/';
+ if (!modifiedURL.pathname.endsWith('/')) {
18
+ modifiedURL.pathname += '/';
19
+ }
20
return `${modifiedURL.pathname}${modifiedURL.search}${modifiedURL.hash}`;
21
}
0 commit comments