Redirect after event added

  • Kaitie
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 9 months ago #145206 by Kaitie
Redirect after event added was created by Kaitie
Hi,

Is it possible to redirect the user to a Thank You page after they've added an event on the front end? There are some other posts regarding this, but they're a bit old.

Thanks!

Please Log in or Create an account to join the conversation.

More
3 years 9 months ago #145207 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Redirect after event added
Is user logged in while submitting events? And what is the page they are being redirected to at the moment after submitting?

Tuan

Please Log in or Create an account to join the conversation.

  • Kaitie
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 9 months ago #145235 by Kaitie
Replied by Kaitie on topic Redirect after event added
Yes, the user is logged in.

They are currently bein redirected to  url.ca/en/add-an-event/event-alias/edit.html

Please Log in or Create an account to join the conversation.

More
3 years 9 months ago #145246 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Redirect after event added
Ah, if users logged in, then that's the right URL. If you want to change it, the only way is modify code to redirect users to the page you want after event submitted. The file you need to modify is components/com_eventbooking/controller/event.php, method save

This is unfortunately, not something could be configured

Tuan

Please Log in or Create an account to join the conversation.

  • Kaitie
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 9 months ago #145275 by Kaitie
Replied by Kaitie on topic Redirect after event added
Great - thanks so much, this worked perfectly!

Please Log in or Create an account to join the conversation.

More
3 years 9 months ago #145280 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Redirect after event added
Great. If you make change to the file, please try to implement it using override so that it won't be lost when you update to future releases of the extension. See eventbookingdoc.joomservices.com/develop...n-a-controller-class

Regards,

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc