Clean URLs
Overview
Rather than raise a (perhaps) premature PR on GitHub, here's a follow-up to PR-123 for WordPress people to test:
https://github.com/christianwach/civicrm-wordpress/tree/cleaner-urls
Here's the original Jira ticket. There aren't any dependencies this time, though it requires a build from CiviCRM master to work correctly - or at minimum the code from these PRs:
- https://github.com/civicrm/civicrm-core/pull/13043
- https://github.com/civicrm/civicrm-core/pull/12969
- https://github.com/civicrm/civicrm-core/pull/12968
Plus enabling Clean URLs in "civicrm.settings.php":
// check for WordPress clean URLs
elseif( function_exists('get_option') && get_option('permalink_structure') != '' ) {
define('CIVICRM_CLEANURL', 1);
}
I'd like to see the latest code which changes the CiviCRM-WordPress plugin's init sequence out in the wild before I raise a PR, but that allows some time to test this, which will inevitably be complicated.
Before
Basepage URLs are of the form:
https://domain.tld/civicrm/?page=CiviCRM&q=civicrm%2Fevent%2Finfo&reset=1&id=7
After
Basepage URLs are of the form:
https://domain.tld/civicrm/event/info/?reset=1&id=7