cpsdqs / cohost-dl

download cohost onto your computer
https://cloudwithlightning.net/random/chostin/cohost-dl/
MIT License
53 stars 6 forks source link

Some resources are expected to be at content root rather than relative to page location #4

Closed randomouscrap98 closed 2 months ago

randomouscrap98 commented 2 months ago

This makes hosting them under a folder or something break. For instance, if I'm trying to host it under a "cohost" path. Here, the full path is (currently) https://haloopdy.com/cohost/haloopdy/post/7452593-derfisch.html

image

You should be able to just have the path be relative, like ../../static/etc. I think, anyway... sometimes I forget lol.

cpsdqs commented 2 months ago

This particular issue is now fixed, but webpack chunks are still being loaded from the root (which I can’t do anything about at the moment), so it doesn’t quite work all the way. Right now, this is a good thing, because when javascript does actually succeed loading, the page will crash and turn blank very quickly. I think I’ll close this now and note #2 and #3 for the whole javascript issue

randomouscrap98 commented 2 months ago

Cool. You're doing a great job btw, thank you for this