selfoss icon indicating copy to clipboard operation
selfoss copied to clipboard

Mobile Website tries to load nonexistend path

Open heull001 opened this issue 3 months ago • 2 comments

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;
}

heull001 avatar Mar 30 '24 13:03 heull001

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

jtojnar avatar Apr 02 '24 21:04 jtojnar

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.

jtojnar avatar Apr 02 '24 22:04 jtojnar