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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. NodeBB
  3. Unread/Recent/Nav buttons don't work within categories/topics

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

Scheduled Pinned Locked Moved Solved NodeBB
19 Posts 3 Posters 2.6k Views 3 Watching
  • 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.
  • robiR Offline
    robiR Offline
    robi
    wrote on last edited by robi
    #1

    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?

    Conscious tech

    1 Reply Last reply
    0
    • LonkleL Offline
      LonkleL Offline
      Lonkle
      wrote on last edited by
      #2

      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?

      robiR 1 Reply Last reply
      0
      • LonkleL Lonkle

        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?

        robiR Offline
        robiR Offline
        robi
        wrote on last edited by
        #3

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

        Conscious tech

        LonkleL 1 Reply Last reply
        0
        • robiR robi

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

          LonkleL Offline
          LonkleL Offline
          Lonkle
          wrote on last edited by
          #4

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

          robiR 1 Reply Last reply
          0
          • LonkleL Offline
            LonkleL Offline
            Lonkle
            wrote on last edited by
            #5

            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
            0
            • LonkleL Lonkle

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

              robiR Offline
              robiR Offline
              robi
              wrote on last edited by
              #6

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

              Conscious tech

              LonkleL 1 Reply Last reply
              0
              • robiR robi

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

                LonkleL Offline
                LonkleL Offline
                Lonkle
                wrote on last edited by
                #7

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

                robiR 1 Reply Last reply
                0
                • LonkleL Lonkle

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

                  robiR Offline
                  robiR Offline
                  robi
                  wrote on last edited by
                  #8

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

                  Conscious tech

                  1 Reply Last reply
                  0
                  • LonkleL Offline
                    LonkleL Offline
                    Lonkle
                    wrote on last edited by
                    #9

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

                    robiR 1 Reply Last reply
                    0
                    • LonkleL Lonkle

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

                      robiR Offline
                      robiR Offline
                      robi
                      wrote on last edited by
                      #10

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

                      Conscious tech

                      LonkleL 1 Reply Last reply
                      0
                      • girishG Offline
                        girishG Offline
                        girish
                        Staff
                        wrote on last edited by
                        #11

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

                        robiR 1 Reply Last reply
                        1
                        • robiR robi

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

                          LonkleL Offline
                          LonkleL Offline
                          Lonkle
                          wrote on last edited by
                          #12

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

                          girishG 1 Reply Last reply
                          0
                          • LonkleL Lonkle

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

                            girishG Offline
                            girishG Offline
                            girish
                            Staff
                            wrote on last edited by
                            #13

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

                            robiR 1 Reply Last reply
                            0
                            • girishG girish

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

                              robiR Offline
                              robiR Offline
                              robi
                              wrote on last edited by
                              #14

                              @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

                              Conscious tech

                              1 Reply Last reply
                              0
                              • girishG girish

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

                                robiR Offline
                                robiR Offline
                                robi
                                wrote on last edited by
                                #15

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

                                Conscious tech

                                1 Reply Last reply
                                0
                                • girishG Offline
                                  girishG Offline
                                  girish
                                  Staff
                                  wrote on last edited by girish
                                  #16

                                  @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

                                  robiR 1 Reply Last reply
                                  0
                                  • robiR Offline
                                    robiR Offline
                                    robi
                                    wrote on last edited by
                                    #17

                                    it just says categories without the leading /

                                    Conscious tech

                                    1 Reply Last reply
                                    0
                                    • girishG 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

                                      robiR Offline
                                      robiR Offline
                                      robi
                                      wrote on last edited by
                                      #18

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

                                      Conscious tech

                                      LonkleL 1 Reply Last reply
                                      1
                                      • robiR robi

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

                                        LonkleL Offline
                                        LonkleL Offline
                                        Lonkle
                                        wrote on last edited by
                                        #19

                                        @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
                                        0
                                        Reply
                                        • Reply as topic
                                        Log in to reply
                                        • Oldest to Newest
                                        • Newest to Oldest
                                        • Most Votes


                                        • Login

                                        • Don't have an account? Register

                                        • Login or register to search.
                                        • First post
                                          Last post
                                        0
                                        • Categories
                                        • Recent
                                        • Tags
                                        • Popular
                                        • Bookmarks
                                        • Search