404 דף נשבר כאשר .js מתווסף לסוף דף משתמש

I was wondering if it had something to do with the headers discourse sends out if it detects a .js file ending, but that sounds correct.