Wrong folder reference in hosted Dolibarr installation when URLs are automatically generated

Hello all,
I have a hosted Dolibarr installation and things are generally going very well. One issue which I have had from the start though is that Dolibarr keeps generating wrong folder references on URLs which it generates. For example, to generate a link to make a payment it will give the reference https://example.com/f/f/htdocs/public/payment/newpayment.php?source=invoice&ref=FA2209-0101 when it should just give https://example.com/f/htdocs/public/payment/newpayment.php?source=invoice&ref=FA2209-0101 (one /f has been removed from the second version).
The problem is the same when links are sent out to approve expenses, and the like. Every time I need to manually remove a /f from the URL reference in order to have the proper URL given to the recipient.
Is there a setting I can modify in order to correct this wrong reference? Maybe there is something in the config.php file I need to change?
Thanks for any input.

Hello,

Have a look on your conf/conf.php and the variable : $dolibarr_main_url_root=‘’;

1 Like

Thanks for the tip.
It was set as https://example.com/f as that is the directory I’m using, but by removing /f it doesn’t seem to have affected the installation and the relative reference is now correct when URLs are generated.