Offline HTML contents of .zip file not displaying properly.

All about the OSDev Wiki. Discussions about the organization and general structure of articles and how to use the wiki. Request changes here if you don't know how to use the wiki.
Post Reply
Chadwicke
Posts: 2
Joined: Fri Nov 15, 2024 7:06 pm

Offline HTML contents of .zip file not displaying properly.

Post by Chadwicke »

Downloaded the zip of the wiki. Only the Expanded Main Page seems to display correctly. Every other page displays the raw HTML, as if it were text in an editor. Not sure what I did wrong or how to fix it, but viewing the pages online from the server don't have this problem, it's only the downloaded offline pages provided in the zip that have this problem.

Thank you.
Octocontrabass
Member
Member
Posts: 5512
Joined: Mon Mar 25, 2013 7:01 pm

Re: Offline HTML contents of .zip file not displaying properly.

Post by Octocontrabass »

The server sends a content-type header when you view the wiki online. Without it, your browser has to guess what each file contains, and it might guess wrong sometimes.

Adding extensions to the file names might help (although it will break links).
Chadwicke
Posts: 2
Joined: Fri Nov 15, 2024 7:06 pm

Re: Offline HTML contents of .zip file not displaying properly.

Post by Chadwicke »

Renaming the files to *.html fixed it but also broke it just as described. I can deal with broken links so long as I know where it's supposed to go. Having the whole thing local is great though, thanks again.
Post Reply