--- smart_paging.module.orig 2011-09-20 16:54:07.000000000 +0800 +++ smart_paging.module 2011-09-20 16:46:49.000000000 +0800 @@ -501,6 +501,12 @@ function smart_paging_url_inbound_alter( * Change pagination query type URL to a clean URL */ function smart_paging_url_outbound_alter(&$path, &$options, $original_path) { + $url_exclude = variable_get('smart_paging_outbound_url_exclude_by_path'); + $ct_exclude = variable_get('smart_paging_outbound_url_exclude_by_ct'); + preg_match('/node\/(\d+)/', $path, $matches); + $node = node_load($matches[1]); + + if (!( drupal_match_path($path, $url_exclude) || drupal_match_path($node->type, $ct_exclude))) { if (isset($options['query']['page'])) { if (!empty($path) && !$options['alias']) { $language = isset($options['language']) && isset($options['language']->language) ? $options['language']->language : NULL; @@ -529,6 +535,7 @@ function smart_paging_url_outbound_alter } unset($options['query']['page']); } + } } /**