LukeSmithxyz / lugo

Luke's Hugo Theme
184 stars 64 forks source link

Tags redirecting to wrong places. #27

Open ObsidianMaximus opened 6 months ago

ObsidianMaximus commented 6 months ago

I setup a website using github pages.

But while trying to access the tags from the bottom of the page, i was being redirected to a URL which had the first part as the page/blog i was on and the second part was the tags one.

Example : If i am currently browsing 'example.org/blog/myblog' and i click on a tag say 'hello'. Then technically, it should take me to 'example.org/tags/hello', but it was redirecting me to 'example.org/blog/myblog/tags/hello' , which ofcourse led to 404 error page.

I fixed this issue by adding a / in front of 'tags' in the printf "tags/%s" line inside the themes/lugo/layouts/partials/taglist.html file.

Is this issue specific to github pages or is it perhaps noticed by anyone else?

While browsing other issues, i came across this issue. I believe it is directly related to what i have discussed above.