Hoe routes te vinden of relatieve URL's te gebruiken met dynamische velden

Hello,

I am also using Discourse Tab Bar and Follow plugin. I also added the /my/follow/feed url to Discourse Tab Bar. The tab activation didn’t work on my forum too :grin: Now I made a little css hack to make this work.

I target the current body class which is .user-follow-page this help us to keep the css modification on follow page. With this class we can easily target the relevant Discourse Tab Bar tab.

What we have to do is change the stucked active tab color to the default (non active) and add the active tab color to that tab which has the data-destination /my/follow/feed.

data-destination is the url you set up in the Tab Bar theme component to tabs.

Add this to a new component mobile css section.

body.user-follow-page {
  .d-tab-bar {
    .tab {
      &.active {
        color: var(--primary-medium);
      }
      &[data-destination="/my/follow/feed"] {
        color: var(--tertiary);
      }
    }
  }
}

I believe this is it discourse/app/assets/javascripts/discourse/app/routes/app-route-map.js at 9d5da2b383765becb824a8f3ff3665abc8e527fa · discourse/discourse · GitHub