/following route not working on subfolder setup


Discourse Version: 2.7.0.beta3 ff1ac57f

Plugin Commit: 679e0ed

Other Plugins

          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/discourse/discourse-oauth2-basic.git
          - git clone https://github.com/paviliondev/discourse-locations.git
          - git clone https://github.com/angusmcleod/discourse-ratings.git
          - git clone https://github.com/iunctis/discourse-formatting-toolbar.git
          - git clone https://github.com/Toxuru/discourse-sidebar-categories
          - git clone https://github.com/paviliondev/discourse-follow
          - git clone https://github.com/davidtaylorhq/discourse-whos-online
          - git clone https://github.com/discourse/discourse-rss-polling
          - git clone https://github.com/discourse/discourse-data-explorer
          - git clone https://github.com/discourse/discourse-affiliate
          - git clone https://github.com/discourse/discourse-subscriptions
          - git clone https://github.com/discourse/discourse-sitemap
          - git clone https://github.com/discourse/discourse-chat-integration
          - git clone https://github.com/davidtaylorhq/discourse-telegram-notifications
          - git clone https://github.com/renato/discourse-podcasts-onebox
          - git clone https://github.com/renato/discourse-graphql -b comparajogos

Steps to Reproduce

  1. Follow the Subfolder support with Docker - sysadmin - Discourse Meta guide to setup an instance in a subfolder
  2. The /following route, which worked before the change, is now 404’ing



I understand this is a tough one to debug.

I noticed /s from discourse-subscriptions is still working, but /following from discourse-follow is not. Other routes from discourse-follow, like the ones below /u, are also working fine.

I don’t know if there’s anything I need to do on my side or if there’s something on the route definition that could be done in this case.


1 Like

Hey there, in the browser’s network tab, what is the exact URL being called when you hit ‘following’ on the Discovery Topic List?

The exact URL being called is https://www.comparajogos.com.br/f/following and it returns with a 404.

I’d help if I knew where this route was being added, but it’s unclear to me.

1 Like

are you sure that’s not actually following.json? (see Name under network tab). What is in the browser address bar is not necessarily what is called via XHR.

What happens if you manually put in:



EDIT: I misread what you first wrote, sorry. When I click on the Following tab, Discourse tries to call https://www.comparajogos.com.br/f/following.json?ascending=false, gets a 404 response and then redirects me to /f/404.


It couldn’t work, the root URL isn’t routed to Discourse, only /f/.* is.

This route was working with the subdomain setup, on https://forum.comparajogos.com.br/following, showing the topics of people I follow.