CSS broken, index.js is HTML #5167

Closed
opened 2025-11-02 06:16:41 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @dadosch on GitHub (Apr 1, 2020).

  • Gitea version (or commit ref): 1.11.4
  • Git version:-
  • Operating system: Arch Linux
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

After a upgrade to 1.11.4, the CSS is broken in Firefox, the console shows:

Stylesheet https://host/user/login was not loaded because its MIME type, "text/html", is not "text/css". (roughly translated from German)

SyntaxError: expected expression, got '<' (for index.js),

/js/index.js?v=[somestring] returns

<a href="/user/login">Found</a>.

Originally created by @dadosch on GitHub (Apr 1, 2020). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.11.4 - Git version:- - Operating system: Arch Linux - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [x] No - [ ] Not relevant - Log gist: ## Description After a upgrade to 1.11.4, the CSS is broken in Firefox, the console shows: > Stylesheet https://host/user/login was not loaded because its MIME type, "text/html", is not "text/css". (roughly translated from German) > SyntaxError: expected expression, got '<' (for index.js), /js/index.js?v=[somestring] returns ``` <a href="/user/login">Found</a>. ```
Author
Owner

@jolheiser commented on GitHub (Apr 1, 2020):

Seems this is related to this bug https://bugs.archlinux.org/task/66011

@jolheiser commented on GitHub (Apr 1, 2020): Seems this is related to this bug https://bugs.archlinux.org/task/66011
Author
Owner

@jolheiser commented on GitHub (Apr 1, 2020):

If this turns out to be something different, feel free to re-open. 😄

@jolheiser commented on GitHub (Apr 1, 2020): If this turns out to be something different, feel free to re-open. 😄
Author
Owner

@dadosch commented on GitHub (Apr 1, 2020):

This was https://github.com/go-gitea/gitea/issues/10907, if I'm not wrong…
But there, gitea didn't even start. I will ask on the Arch Bug Report page.

@dadosch commented on GitHub (Apr 1, 2020): This was https://github.com/go-gitea/gitea/issues/10907, if I'm not wrong… But there, gitea didn't even start. I will ask on the Arch Bug Report page.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5167