Hi,
Whenever I call [[!++site_url]] or $modx->getOption('site_url') all I get is '/' (without the quotes).
According to the thread below, it should return the full website url.
https://forums.modx.com/thread/31534/revolution-solved-quick-question-standard-way-to-retrieve-the-base-url
I am using Revo and furl. Here is the furl content of the .htaccess file:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(fr|de|es)?(\/)?(.*)$ index.php?c=$1&q=$3 [L,QSA]
php_value display_errors 1
This is also set in the head of each page:
<base href="[[!++site_url]]" />
but the final value is this:
I have checked under system settings and I couldn't find this setting, so I created it with the correct value, but [[!++site_url]] still only returns '/'.
What could be wrong here? I have been working on this for hours now.
One other thing I noted is the following code will not return the correct value either:
$modx->makeUrl($id,'','','full');
David
[ed. note: macroman last edited this post 14 years, 7 months ago.]