Hello,

I have noticed that the return from base_path() in includes/common.inc is different depending on whether clean URLs is enabled or not.

e.g. visit /admin/settings without clean URLs:

return = /

e.g. visit /admin/settings with clean URLs:

return = /admin/settings/

This causes big problems for themes where things like:

@import "/admin/settings/modules/system/admin.css";

show up.

I can only assume that $GLOBALS['base_path'] has not been defined properly. This is a brand new fresh install and clean URLs was the first thing I tried after creating an account. The clean URLs test page reports that things are working but there is no CSS.

My work-around for now has been to replace "return $GLOBALS['base_path'];" with "return '/';", the better thing would be to set the variable properly.

Comments

lewiz’s picture

Correct fix is to set $base_url in site config file.

The installer should definitely handle this as for many users it will be non-trivial to fix.

dpearcefl’s picture

Status: Active » Closed (won't fix)

Considering the age of this issue with no responses and that D5 is unsupported, I am closing this issue.