3

EDIT: SOLVED. It wasn't a problem with the tos.html or layout.html or home.html files or the folder structure. It was an nginx problem, which has been fixed. Thank you all for the replies and helping out!

  1. The tos.html file is present in the /home/app/throat/app/templates/ folder. I checked the layout.html file and it's referenced correctly as <a href="{{url_for('tos')}}">ToS</a>. Any other files that I need to look for?

For the layout.html file in /home/app/throat/app/html/shared/ the reference is <a href="@{url_for('tos')}">ToS</a>. The codes/hrefs seem to be correct. I've pulled my hair long enough so just giving it a go on this sub if one of you might have an answer.

  1. As for the homepage sidebar where you have the Hot, Top, and New links, the Top link also gives a 404 Not Found error. The Hot and New links work just fine. Are there any particular files that I need to look and what might be wrong?
**EDIT:** SOLVED. It wasn't a problem with the **tos.html** or **layout.html** or **home.html** files or the folder structure. It was an nginx problem, which has been fixed. Thank you all for the replies and helping out! 1. The **tos.html** file is present in the **/home/app/throat/app/templates/** folder. I checked the **layout.html** file and it's referenced correctly as **<a href="{{url_for('tos')}}">ToS</a>**. Any other files that I need to look for? For the **layout.html** file in **/home/app/throat/app/html/shared/** the reference is **<a href="@{url_for('tos')}">ToS</a>**. The codes/hrefs seem to be correct. I've pulled my hair long enough so just giving it a go on this sub if one of you might have an answer. 2. As for the homepage sidebar where you have the **Hot, Top, and New** links, the **Top** link also gives a **404 Not Found** error. The **Hot** and **New** links work just fine. Are there any particular files that I need to look and what might be wrong?

7 comments

[–] E-werd 1 points (+1|-0) Edited

I’m not in a position where I can sit at my desk and spin up an instance, but regarding the Top sort... do you have posts in your instance right now at all? It shouldn’t matter, but I’m just feeling for possibilities.

As for the TOS link... can you verify that the template indeed exists? It should be under /home/app/throat/app/templates/tos.html

Edit: Within the past week the top Hot sort was broken and fixed when we added support for postgresql, make sure you do a ‘git pull’ to get the updates.

Edit2: That was the Hot sort that broke, not the top.

[–] curious [OP] 0 points (+0|-0)

Alright. There was no problem with the files/file structure at all. It was an nginx problem. Thank you for trying to help you!

Cheers!