Home Forums Plugin Support WP Project Manager Pro url loop, little glitch i fixed, I recommend you add it to next update

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Nayem 3 years, 9 months ago.

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

    Craig
    Member
    Post count: 15

    I'm using frontend and buddypress addons. I wanted my users to see the tasks inside their profile. Which I was able to make possible, accept that there was a URL loop. If i clicked on outstanding tasks or completed tasks, it wouldnt let me click back to current. Those 3 links worked fine inside on their own dedicated pages that you set in wp dashboard but once I made took that page and added it into the buddypress profile it caused the loop error. I updated the following and it fixed it.

    wedevs-project-manager-frontend-pro > urls.php

    ` function show_url_my_task( $url ) {
    $url = add_query_arg( array(
    ‘page' => ‘cpm_task',
    ), $this->get_permalink() );

    return $url;
    }`

    I added this line

    'tab' => 'current_task'

    final output

    ` function show_url_my_task( $url ) {
    $url = add_query_arg( array(
    ‘page' => ‘cpm_task',
    ‘tab' => ‘current_task'
    ), $this->get_permalink() );

    return $url;
    }`

    #68197

    Nayem
    Moderator
    Post count: 6480

    Hello,

    Thank you for pointing us this. I will notify to our developer team about your fix.

    THanks.

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

The topic ‘url loop, little glitch i fixed, I recommend you add it to next update’ is closed to new replies.