Home Forums Plugin Support WP Project Manager Pro Some email links point to wp-admin

This topic is: resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Nizam Uddin 5 years, 2 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #17814

    Roberto
    Member
    Post count: 2

    Hello,

    I created some projects in the frontend and some notification emails are linking to the wp-admin part of the site, instead of linking to the frontend.

    Project Invite email link (%PROJECT_URL%) – links to frontend – OK
    Messages email link (%MESSAGE_URL%) – links to frontend – OK
    Comment email link (%COMMENT_URL%) – links to backend (wp-admin) – NOT OK

    Where do I fix this?

    Thanks

    #17836

    Nizam Uddin
    Keymaster
    Post count: 670

    Thank you Roberto, just fixed the problem. Please wait for upcoming update. If don't want to wait then go to line number 563 in frontend.php and replace the following code…

    
    function form_actions() {
            if ( is_admin() && ! isset( $_POST['cpmf_url'] )) {
                return;
            }
    
            $form_actions = array('cpm_project_form', 'cpm_message_form', 'cpm_tasklist_form',
                'cpm_task_new_form', 'cpm_milestone_form', 'cpm_comment_form', 'cpm_project_duplicate');
    
            foreach ($form_actions as $action) {
                add_action( $action, array($this, 'form_hidden_input') );
            }
        }
    

    Thank you…

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Some email links point to wp-admin’ is closed to new replies.