• When ever the announcement is shown on the top bar and has a link, but when you click on the link it does not take you directly to where the announcements is for you you to read, only if you manually navigate to where the messages is that read manually, the link in the notification top bar should be able to redirect the user to where the announcement is.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Shamim Hasan

    (@shamim51)

    Did you set “Front End PM Page” in Front End PM > Settings > General?

    Thread Starter pandglobal

    (@pandglobal)

    Noo i don’t like using the page, as i placed the pm shortcode in a woocommerce endpoint in my account section, I was expecting the notification to redirect to the endpoint where i put the pm shortcode

    Plugin Author Shamim Hasan

    (@shamim51)

    You can use fep_query_url_without_esc_filter filter hook to change the url dynamically.

    Thread Starter pandglobal

    (@pandglobal)

    Thank you, but can you help me with exact full code as i don’t know exactly how to target it, just help me write the full code and use https //yourdomain.com where i supposed to put my own domain….

    Plugin Author Shamim Hasan

    (@shamim51)

    add following code in your theme’s (child theme’s if you are using) functions.php

    add_filter( 'fep_query_url_without_esc_filter', function( $url, $args ){
        $url = add_query_arg( $args, 'https://example.com/my-page/messages' ); //your endpoint url
        return $url;
    }, 10, 2 );
    
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Top notification link not redirecting’ is closed to new replies.