# 多个尾随或错放的 / 可能导致页面加载为空白页

**URL:** <https://meta.discourse.org/t/multiple-trailing-or-misplaced-can-cause-page-to-load-as-a-blank-page/172307>\
**Category:** Feature\
**Created:** [2020 年12 月 5 日 03:33 UTC](https://meta.discourse.org/t/multiple-trailing-or-misplaced-can-cause-page-to-load-as-a-blank-page/172307 "2020-12-05T03:33:12Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

作者： ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)\
发布日期： [2020 年12 月 8 日 16:48 UTC](https://meta.discourse.org/t/multiple-trailing-or-misplaced-can-cause-page-to-load-as-a-blank-page/172307/11 "2020-12-08T16:48:34Z")

</div>

这应该能解决问题：

> <https://github.com/discourse/discourse/commit/b824af02d452e2d907690d1743b1b40eedb7667c>
>
> 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.

---

_[View the full topic](https://meta.discourse.org/t/multiple-trailing-or-misplaced-can-cause-page-to-load-as-a-blank-page/172307)._
