Strange User Profile Link Inconsistencies...
-
I just noticed that "mentions" in the "Recent Posts" widget are pointing to the wrong destination.
They SHOULD be pointing to "site_base_url/user/id" but instead point to "config_base_host/user/id".
In the example I discovered, it's pointing to
http://localhost:4567/user/jason-c
when it should be pointing tohttp://forum.mysite.com/user/jason-c"
This is the only case I've found of this so far. Any ideas regarding this behaviour?
Thanks!
- I should mention that I'm using a reverse proxy to push
localhost:4567
toforum.mysite.com
on port80
. Everything works perfectly, but I suspect it's using the wrong variable to create the link in this case and is using the base config rather than the site's base URL as defined in my settings.
- I should mention that I'm using a reverse proxy to push
-
@Jason-Neal what do you have for "url" in config.json?
-
It's
localhost:4567
and I'm using a reverse proxy to point traffic from port 80 there. It's not an issue anywhere else in the site, it's only an issue with the "mentions". -
@Jason-Neal NodeBB core and plugins don't read site url from your proxy server, they get it from config.json. All links to routes in NodeBB use relative path so it won't be an issue there. you will see this in mentions, emails sent from NodeBB etc.
Change the "url" in config.json to
forum.mysite.com
-
@Jason-Neal @pichalite is correct, you'll need to change the
url
value to represent the publicly accessible URL for your forum.