I am currently using ThemeKey with CiviCRM. By specifying this path:

civicrm/%

All my CiviCRM pages change to the correct theme.. except one, which is this one:

http:///civicrm?reset=1

This link is the "CiviCRM" link that shows up after "Home" in the breadcrumb.

Could you give some advice regarding the correct path pattern to grab this URL as well? I have been trying various patterns but not having much luck.

Thank you,
Robert

Comments

robertjd’s picture

Actually, this seems to be an issue with all URL's that don't have a trailing slash, for example:

http://site.com/events

Is not treated the same as:

http://site.com/events/

petednz’s picture

Robert - I have re-posted over on civicrm forum - http://forum.civicrm.org/index.php/topic,9338.0.html

petednz’s picture

From Lobo:

can u specificy

civicrm%

will that solve the issue?

lobo

robertjd’s picture

Yes, I have tried civicrm% as well as events%, but neither catch the trailing slash on the URL

robertjd’s picture

It turns out that the trick is to use this pattern:

civicrm

without a % afterwards. Doing so will catch any URL that starts with civicrm. This is a strange way of doing things in my opinion. ThemeKey should have a better pattern syntax, and better documentation on those patterns.

mkalkbrenner’s picture

ThemeKey 6.x-1.2beta fixes a lot of bugs related to GET params and url aliases. Additionally it allows to use all(!) properties as conditions for paths and a regex operator. So it should be possible to find more than one rule to achieve what you want.

mkalkbrenner’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.