From httpd conf:
- Code: Select all
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !^(/lib/|/styles/|/plugins/|/public/|/templates/)
RewriteRule ^(.*)$ /index.php/jld$1 [QSA,L]
From config.inc.php:
- Code: Select all
base_url[jld] = https://www.jld.edu.au
restful_urls = On
It seems like a bug that the breadcrumbs are using a URL that doesn't observe the base_url[jld] setting from the config file.
I did some investigation but the appropriate fix is not clear to me. Currently the link target comes from the $currentUrl variable set by PKPTemplateManager::setupTemplate() with a call to PKPRequest::getCompleteUrl() which calls getRequestPath(). In our case this latter function is essentially returning the value of $_SERVER['PATH_INFO'] which includes the 'jld' part. I'm not sure whether these functions should observe the base_url setting or whether something new is required.
The environment is OJS 2.3.7, httpd 2.2.3 and PHP 5.3.3.
Advice or a patch would be welcome!
Cheers
Mark
