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)

By customization, I mean just changes in the 'text' e.g. adding a 'random' link at the header or changing the texts or tinkering with the themes (CSS) and that's about is.

Also, when I go inside a sub's click the HOT, NEW, TOP e.g https://mysite.co/s/news/hot etc, all the three buttons/links work. It's only in the Home Page that I'm having a problem. Could the culprit be the layout.html file in /home/app/throat/app/html/shared ? Asking here directly since my site live so just taking precautions :D