Home › Forums › Calendar Products › Events Calendar PRO › Broken URL rewriting with AJAX
- This topic has 3 replies, 2 voices, and was last updated 11 years, 1 month ago by
Gustavo Bordoni.
-
AuthorPosts
-
March 10, 2015 at 2:16 pm #947408
Trevor
ParticipantI’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.
March 10, 2015 at 7:09 pm #947461Gustavo Bordoni
KeymasterHi 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,
March 10, 2015 at 8:59 pm #947468Trevor
ParticipantIt 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.jsfile, 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!
March 12, 2015 at 9:45 pm #948073Gustavo Bordoni
KeymasterHi 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,
-
AuthorPosts
- The topic ‘Broken URL rewriting with AJAX’ is closed to new replies.
