mirror of
https://github.com/discourse/discourse.git
synced 2025-03-29 11:35:45 +08:00

This is similar to a fix used in ember core: https://github.com/emberjs/ember.js/blob/master/packages/@ember/-internals/routing/lib/location/history_location.ts#L140 It will prevent a URL with a double slash to hang and end up in a 404.