Unread/Recent/Nav buttons don't work within categories/topics
-
They only seem to work from the homepage, seemingly because of the URL structure.
If within a category or topic, the buttons try to go to their respective functions within the category or topic which doesn't work/exist.
This doesn't appear to be a problem here.
One thought it that perhaps the URL domain structure we have which is one more layer deep is causing the issue.
Here 3 layers:
forum.cloudron.io
which gives a recent URL of:
https://forum.cloudron.io/recent
We have 4 layers:
forum.sub.domain.io
giving:
https://forum.sub.domain.io/topic/xxx/recent
which is a 404.Anyone come across this before?
Can anyone with a wildcard domain validate this behavior?
Is there a regex to adjust?
-
@Lonk said in Unread/Recent buttons don't work within categories/topics:
@robi Can you reproduce the error while watching the NGINX log?
it's not an nginx issue.
it's a problem with how NodeBB generates the URL for the top buttons like
/recent
.I don't know why it would be doing the extra URI paths when all it needs to do is
/recent
. -
@Lonk said in Unread/Recent buttons don't work within categories/topics:
So this is def a nodebb bug...then?
that would be a rash conclusion at this point.
I did post it here in the NodeBB section with the hopes to find out the actual reason, configuration or bug or otherwise.
-
@robi When I installed a NodeBB plugin, the navigations links did become corrupt once and I had to fix it by going to
/admin/settings/navigation
and editing all the entries one by one. I reported this on their forum but didn't get any real response. -
@Lonk said in Unread/Recent buttons don't work within categories/topics:
@robi Have you switched to a regular singular sub domain and tested to see if the double sub-domain is the real issue at hand here?
Yeah, this is a good idea to check out as well. Just clone the forum to another place and check if the links are correct.
-
@girish said in Unread/Recent buttons don't work within categories/topics:
@robi When I installed a NodeBB plugin, the navigations links did become corrupt once and I had to fix it by going to
/admin/settings/navigation
and editing all the entries one by one. I reported this on their forum but didn't get any real response.This is a good suggestion, but I don't have enough access to do this and I don't see anything wrong with these entries.
-
@robi said in Unread/Recent/Nav buttons don't work within categories/topics:
This is a good suggestion, but I don't have enough access to do this and I don't see anything wrong with these entries.
What I meant is the thing on the left side named "Route". Does it say "/categories" for you? In my case, it had become"corrupt" like "/categories#xxx" something.
-
@robi said in Unread/Recent/Nav buttons don't work within categories/topics:
@girish thank you that was it!
I changed all the routes for all the menu items to start with a
/
and we're good now.Like you said, it must have been a plugin that changed the routes
Niceeeee. Always feels good to fix a weird problems - glad you got it figured out! ️