bugfix fot theme detection with relative URLs