}
    /**
     * Disable the canonical redirect when on the front page.
     *
     * NOTE: This is required to allow search queries to be properly redirected to the front page.
     * If this were not in place the user would be redirected to the blog home page.
     *
     * Reference:
     * http://wordpress.stackexchange.com/questions/51530/rewrite-rules-problem-when-rule-includes-homepage-slug
     *
     * @TODO  Perhaps I should check for the existance of any of the Connections query vars before
     * removing canonical redirect of the front page.
     *
     * @access private
     * @since 0.7.6.4
     * @param (string) $redirectURL  The URL to redirect to.
     * @param (string) $requestedURL The original requested URL.
     * @return (string)              URL
     */
    public static function frontPageCanonicalRedirect($redirectURL, $requestedURL)
    {
        // $homeID = cnSettingsAPI::get( 'connections', 'connections_home_page', 'page_id' );
        if (is_front_page() && get_option('show_on_front') == 'page') {
            return $requestedURL;
        }
        return $redirectURL;
    }
}
// Register all valid query variables.
cnRewrite::init();