fossar / selfoss

multipurpose rss reader, live stream, mashup, aggregation web application
https://selfoss.aditu.de
GNU General Public License v3.0
2.35k stars 343 forks source link

Mobile Website tries to load nonexistend path #1478

Open heull001 opened 3 months ago

heull001 commented 3 months ago

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 commented 3 months ago

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

jtojnar commented 3 months ago

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