Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Unread/Recent/Nav buttons don't work within categories/topics

    NodeBB
    3
    19
    608
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • robi
      robi last edited by robi

      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?

      Life of Advanced Technology

      1 Reply Last reply Reply Quote 0
      • Lonkle
        Lonkle last edited by

        I just use the "recents" tab and intentionally went and ignored all the apps I didn't care about and that achieved a similar result for me. Do you think what you're experiencing is a NodeBB specific bug or Cloudron routing issue?

        robi 1 Reply Last reply Reply Quote 0
        • robi
          robi @Lonkle last edited by

          @Lonk it's feeling like a routing issue with this specific 4 part domain.

          Life of Advanced Technology

          Lonkle 1 Reply Last reply Reply Quote 0
          • Lonkle
            Lonkle @robi last edited by

            @robi So this is happening on your personal install that has more than one subdomain then?

            robi 1 Reply Last reply Reply Quote 0
            • Lonkle
              Lonkle last edited by

              Important to read NGINX logs when testing too. I always forget that they're so easily accessible in the Services tab.

              1 Reply Last reply Reply Quote 0
              • robi
                robi @Lonkle last edited by

                @Lonk said in Unread/Recent buttons don't work within categories/topics:

                @robi So this is happening on your personal install that has more than one subdomain then?

                No, it's a client machine with a dyndns setup.

                Life of Advanced Technology

                Lonkle 1 Reply Last reply Reply Quote 0
                • Lonkle
                  Lonkle @robi last edited by

                  @robi Can you reproduce the error while watching the NGINX log?

                  robi 1 Reply Last reply Reply Quote 0
                  • robi
                    robi @Lonkle last edited by

                    @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.

                    Life of Advanced Technology

                    1 Reply Last reply Reply Quote 0
                    • Lonkle
                      Lonkle last edited by

                      So this is def a nodebb bug...then?

                      robi 1 Reply Last reply Reply Quote 0
                      • robi
                        robi @Lonkle last edited by

                        @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.

                        Life of Advanced Technology

                        Lonkle 1 Reply Last reply Reply Quote 0
                        • girish
                          girish Staff last edited by

                          @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.

                          robi 1 Reply Last reply Reply Quote 1
                          • Lonkle
                            Lonkle @robi last edited by

                            @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?

                            girish 1 Reply Last reply Reply Quote 0
                            • girish
                              girish Staff @Lonkle last edited by

                              @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.

                              robi 1 Reply Last reply Reply Quote 0
                              • robi
                                robi @girish last edited by

                                @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.
                                Settings _ Navigation _ NodeBB Admin Control Panel.png

                                Life of Advanced Technology

                                1 Reply Last reply Reply Quote 0
                                • robi
                                  robi @girish last edited by

                                  @girish
                                  If I could, I'd have done this already.
                                  It's a dyndns that only lets you control xxx.sub.domains, and not sub.domains.

                                  Which is also why I asked for anyone with a wildcard domain for repro|comparison.

                                  Life of Advanced Technology

                                  1 Reply Last reply Reply Quote 0
                                  • girish
                                    girish Staff last edited by girish

                                    @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.

                                    e5c6cd80-a48d-4bc6-bba7-43c11ab31bea-image.png

                                    robi 1 Reply Last reply Reply Quote 0
                                    • robi
                                      robi last edited by

                                      it just says categories without the leading /

                                      Life of Advanced Technology

                                      1 Reply Last reply Reply Quote 0
                                      • robi
                                        robi @girish last edited by

                                        @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 😕

                                        Life of Advanced Technology

                                        Lonkle 1 Reply Last reply Reply Quote 1
                                        • Lonkle
                                          Lonkle @robi last edited by

                                          @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! ☺️

                                          1 Reply Last reply Reply Quote 0
                                          • First post
                                            Last post
                                          Powered by NodeBB