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)

Well, I can confirm that the ToS link works in the current git version of Throat. Same goes for the Top sort. So I guess that brings us to...

I've made a lot of customization to my site, could you (if you have time) point me to any particular file or line of code where I need to make the changes?

We'll need to know what customizations you made and where. Not sure what to tell you without that info.

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

On comparing, here's the difference between my version of layout.html and the current version of layout.html of throat.

Location of layout.html being the one in /home/app/throat/app/html/shared

https://i.imgur.com/OxYRMUX.png