Reply URL in forum emails is wrong

Reply URL in forum emails is wrong

by Ken Olson -
Number of replies: 2

When a post is made to a forum on our Moodle site, the emails that go out contain incorrect URL's  in all the links. This is especially problematic for the reply link! Specifically, the url just contains the server path and not the actual url, as in http:///mod/forum/view.php?f=196. It seems like we have missed a setting somewhere to define the 'home' url of our site, but I can't seem to find it anywhere in the documentation or the admin config.

Thanks in advance to anyone who might have an insight on this.

Average of ratings: -
In reply to Ken Olson

Re: Reply URL in forum emails is wrong

by Ken Olson -

Found my own answer thanks to a friend! $CFG->wwwroot line in config.php was wrong. Works like a charm now.

Average of ratings: Useful (1)
In reply to Ken Olson

Re: Reply URL in forum emails is wrong

by R.T. Brown -

Hi Ken,

What was the issue. I've been testing different wwwroot directives, but nothing seems to work. Any messages delivered by email to users contain links that reference http://localhost for some reason. Very strange indeed!

Any advice is appreciated.

R.T.