# 404 Page Breaks when .js is added to the end of a user page

**URL:** <https://meta.discourse.org/t/404-page-breaks-when-js-is-added-to-the-end-of-a-user-page/161777>\
**Category:** UX\
**Created:** [August 22, 2020, 9:16pm UTC](https://meta.discourse.org/t/404-page-breaks-when-js-is-added-to-the-end-of-a-user-page/161777 "2020-08-22T21:16:30Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![neounix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neounix/32/215617_2.png) [@neounix](https://meta.discourse.org/u/neounix)\
**Post date:** [August 23, 2020, 6:28am UTC](https://meta.discourse.org/t/404-page-breaks-when-js-is-added-to-the-end-of-a-user-page/161777/3 "2020-08-23T06:28:17Z")

</div>

> [@merefield](#):
>
> If you are expecting data to be returned you surely want `.json` on the end?

@RiversideRocks is not expecting data to be returned.

He is simply pointing out that when a link (as he posted) has a `.js` extension, that the 404 pages is not displayed as expected, hence his topic:

 ![Screen Shot 2020-08-23 at 1.29.19 PM](https://global.discourse-cdn.com/meta/original/3X/1/1/11c3d9f3467adcb37ea2c13d19126e573f0232c4.jpeg)

Seems legit that a properly formatted 404 page should be returned when the extension is wrong (in this case `.js`), because when other extensions are used (see `.xml`) example, the 404 page is formatted correctly:

 ![Screen Shot 2020-08-23 at 1.35.10 PM](https://global.discourse-cdn.com/meta/original/3X/b/3/b31976b885fa631c77482357922b46f6f8858964.jpeg)

@RiversideRocks is simply pointing out that when a `.js` extension is processed as a 404 (file not found), it the 404 page is not formatted nicely, as expected.

---

_[View the full topic](https://meta.discourse.org/t/404-page-breaks-when-js-is-added-to-the-end-of-a-user-page/161777)._
