Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mobile Website tries to load nonexistend path #1478

Open
heull001 opened this issue Mar 30, 2024 · 2 comments
Open

Mobile Website tries to load nonexistend path #1478

heull001 opened this issue Mar 30, 2024 · 2 comments

Comments

@heull001
Copy link

When loading selfoss on iOS (Safari), it tries to load a js-file with wrong path. Log-Entry of nginx:

0.0.0.0 - - [30/Mar/2024:13:21:17 +0100] "GET /unread/index.runtime.22332b9a.js HTTP/2.0" 404 114 "https://rss.example.com/unread/all" "Mozilla/5.0 (iPhone; CPU iPhone OS 17_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4.1 Mobile/15E148 Safari/604.1"

The file is located in /public/, so I think, the loaded path should be /index.runtime.22332b9a.js.

Workaround (seems to have no side effects, but not completely sure)

location ~* ^/(unread|newest|starred)/(.+\.js) {
  try_files /public/$2 =404;
}
@jtojnar
Copy link
Member

jtojnar commented Apr 2, 2024

Thanks for reporting. What version of selfoss are you running? I do not think 2.19 uses index.runtime.*.js files.

@jtojnar
Copy link
Member

jtojnar commented Apr 2, 2024

Never mind, just remembered that this is caused by parcel-bundler/parcel#9092, will try to look into fixing it there.

@jtojnar jtojnar added this to the 2.20 milestone Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants