Nice work again @baris
I think i will stick to what version we are on now until everything gets fixed in the latest.
Missing a trailing slash causes 404 on forum in subfolder
-
Even though this could be solved with better proxy rules. I'm wondering if it's also not being handled correctly on the server side as well.
- Install a forum in a "subfolder" like
/forums
- Visit the homepage without a trailing slash: https://www.axisandallies.org/forums
Expected Result
The page loads fineActual Result
Receive the following error:/forumscategories Not Found You seem to have stumbled upon a page that does not exist. Return to the home page.
You can see the error here: https://www.axisandallies.org/forums
- Install a forum in a "subfolder" like
-
Definitely sounds like a bug in core https://github.com/NodeBB/NodeBB/issues/6949
-
Can you show us your reverse proxy config? I don't have this issue on my local environment although we can reproduce if we remove nginx out of the equation
-
@julian Yes. I'll need to remove the "sensitive" info out of the config first.
-
I spent quite a bit of time trying to fix this but wasn't able to, it is definitely a bug in core. The way we rewrite the home page url conflicts with express.js.
-
Here's the config: HAProxy Config
-
@baris Okay, thanks for digging into it. If it will take a while to fix, I'll create a rule in HAProxy to add a trailing slash.
-
@djensen47 Should be fixed on master, give it shot