Broken URL rewriting with AJAX

Home Forums Calendar Products Events Calendar PRO Broken URL rewriting with AJAX

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #947408
    Trevor
    Participant

    I’m having an issue here: http://sogourmet.bodolive.com/events/category/cooking-classes/

    When I choose the month by selecting “Events In” is rewrites the URL to http://sogourmet.bodolive.com/2015-10/ when it should rewrite the URL to http://sogourmet.bodolive.com/events/category/cooking-classes/2015-10/.

    My guess is it has something to do with the fact that the site is run on a subdomain.

    #947461
    Gustavo Bordoni
    Keymaster

    Hi Trevor,

    Thanks for reaching out to us, I would like to ask you to try to re-save your Permalinks on the “Settings” ยป “Permalinks”.

    I’m saying that because I’ve tested it every way and shape but I still couldn’t reproduce this bug.

    I will also point you to our Testing for Conflicts page.

    My Best Regards,

    #947468
    Trevor
    Participant

    It doesn’t have anything to do with permalinks, as the page itself is not reloading. The error lies somewhere in the Javascript.

    And actually, I’ve discovered it. I originally had just a single event created in the current month, and so there were no navigation links on the month view to go to the next and previous months.

    And if you look in the tribe-events-ajax-calendar.js file, you will see on lines 22 and 29:

    $nav_link = $( '[class^="tribe-events-nav-"] a' ),
    ...
    base_url = $nav_link.first().attr( 'href' ).slice( 0, -8 );

    Since the navigation links are not present, it is retrieving the incorrect base URL and defaulting to ‘/’, hence why the URL rewriting is not working properly in my case.

    I just verified this is the case by creating an event for next month, which causes the navigation links to appear, and this issue does not appear.

    Hope that helps anyone else who has stumbled upon this issue. Hope you can get some kind of patch worked out for this in the future. Thanks!

    #948073
    Gustavo Bordoni
    Keymaster

    Hi Trevor,

    Thanks for the information, by the way I didn’t notice because this bug presented in another way for you, but I was the one that fixed that issue for our next release, so in our next release this should be fixed for everyone.

    As it’s fixed I’m marking this thread as closed.

    My Best Regards,

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Broken URL rewriting with AJAX’ is closed to new replies.