• Hi,

    First of all thanks for the great plugin.

    Here’s the steps to reproduce this bug:

    1. Enable 301 redirect in Settings > Permalinks
    2. Create a new product with Draft status
    3. Try to preview the product

    The browser enters an endless redirect loop in this case.

    Appreciate your time to look into this.

    Best,
    Parkle

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Dmytro Holovnia

    (@dholovnia)

    Hi Parkle,

    Thank you for the message. The issue was fixed and tested. We will release it in next version of the plugin this week.

    Regards,
    Dima

    You can modify to the function

    public function rewrite_products( $permalink, $post ) {

    if ( $post->post_type !== ‘product’ ) {
    return $permalink;
    }

    to

    public function rewrite_products( $permalink, $post ) {

    if($post->post_status==”draft”){
    return;
    }

    if ( $post->post_type !== ‘product’ ) {
    return $permalink;
    }

    Regards, Carlos

    • This reply was modified 4 years, 10 months ago by carloscggb.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Product preview does not work with 301 redirect enabled’ is closed to new replies.