Home › Forums › Calendar Products › Events Calendar PRO › Events Calendar hijacking any page that has /events/past-events/ in URL
- This topic has 6 replies, 3 voices, and was last updated 8 years, 4 months ago by
Adam Schwartz.
-
AuthorPosts
-
September 14, 2017 at 11:29 am #1349402
Adam Schwartz
ParticipantHi,
We have pages that use /events/past-events/ in their URLs, which makes the plugin think that this is its own event and attempts to hijack it. Ex: /research/center-for-law/events/past-events/business-investment-forum gets redirected to /research/center-for-law/events/list/-events/business-investment-forum/?tribe_event_display=past, which then causes a 404.
Is there anyway to get the plugin to only attempt this on URLs where /events/past-events is at the front of the URL, not anywhere in the middle? I know we can change the slug to something else, but this is a huge site and hunting down the URLs would be time-intensive. We’d much prefer to get this fixed on the plugin’s end.
Thanks!
September 15, 2017 at 8:14 am #1349696Cliff
MemberHi, Adam. Thanks for your detailed question.
We also have a dedicated URL redirect in place for past events. Example from our demo site: http://wpshindig.com/events/past/ goes to http://wpshindig.com/events/list/?tribe_event_display=past
This should work the same way on your site too.
There’s a known bug where a single event like “yoursite/event/pastor-emeritus/” would redirect improperly elsewhere to “or-emiritus” (the “past” gets taken off the slug) — but this is only confirmed if both the Events URL slug (normally “events”) and the Single event URL slug (normally “event”) are the same.
I did some testing and http://wpshindig.com/events/pasttestinganything/ redirects to http://wpshindig.com/events/list/testinganything?tribe_event_display=past (notice the testinganything in the middle there?) — which is a 404 — so I think this is related to the known bug I mentioned at the beginning.
I’ve logged this with that other bug report — to get more robust and targeted redirect rules for “past”, and I’ll mark this ticket as Pending Fix, which means this thread should receive a reply once the applicable fix has been released. I cannot guarantee when it will be fixed as it’s in the development team’s hands now. They need to assign it, code it, test it, and schedule it for release.
I apologize for this issue and appreciate your understanding and patience.
September 15, 2017 at 9:03 am #1349739Adam Schwartz
ParticipantThanks for the update, Cliff!
September 15, 2017 at 10:48 am #1349903Cliff
MemberYou’re welcome. Thanks for your understanding.
November 20, 2017 at 12:55 pm #1387487Courtney
MemberWe released an update for this issue. Can you update your plugins (preferrably on a staging site) and see if that resolves the issue.
https://theeventscalendar.com/maintenance-release-week-13-november-2017/
Thanks
Courtney ?December 12, 2017 at 8:36 am #1403755Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Events Calendar hijacking any page that has /events/past-events/ in URL’ is closed to new replies.
