Fix geolocation redirect with querystring
This commit is contained in:
parent
a056e3e649
commit
821434cbb7
|
@ -61,6 +61,9 @@ jQuery( function( $ ) {
|
|||
}
|
||||
}
|
||||
});
|
||||
|
||||
// Append hashes on load
|
||||
$append_hashes();
|
||||
}
|
||||
|
||||
$( document.body ).on( 'added_to_cart', function() {
|
||||
|
|
|
@ -53,6 +53,10 @@ class WC_Cache_Helper {
|
|||
|
||||
$redirect_url = trailingslashit( home_url( $wp->request ) );
|
||||
|
||||
if ( ! empty( $_SERVER['QUERY_STRING'] ) ) {
|
||||
$redirect_url = add_query_arg( $_SERVER['QUERY_STRING'], '', $redirect_url );
|
||||
}
|
||||
|
||||
if ( ! get_option( 'permalink_structure' ) ) {
|
||||
$redirect_url = add_query_arg( $wp->query_string, '', $redirect_url );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue