How to return directly to the home page ?

2 years 2 months ago #1 by Claude Lendrevie
Your plugin works fine with Joomla 3.8.11. Greetings !

I have just a little question : after a count is deleted, you propose to the customer to identify himself again : personally I do not wish it, and I would prefer just a return to the home page.

How can I do that ? Thanks.
2 years 2 months ago #2 by Function90
Hello Claude,

Sorry for delay in reply.
As if now it can only be possible by making change in code. You can do like
github.com/function90/delete-my-account/...source/js/dma.js#L24
at this line number of this file on your site (plugins => system => f90deletemyaccount => tmpl => js =>dma.js), instead of
location.reload();
use
location.href = '/';

Please let us know if you have any other query.

Thank you
Team Function90
You can share your views regarding our extension at JED ( extensions.joomla.org/profile/profile/details/225115#extensions )

Hire Professional Joomla Developers. ( www.function90.com/contact-us.html )
2 years 2 months ago #3 by Claude Lendrevie
Hi,
Thank you for your technical answer. It's fine.
ps : but the real file to be modified is "plugins => system => f90deletemyaccount => js =>dma.js" (and not "plugins => system => f90deletemyaccount => tmpl => js =>dma.js").

Greetings,
Claude Lendrevie
5 months 4 weeks ago #4 by JE de Sequera
I was hoping this would work, but I made the change to the dma.js file (it is in fact in "plugins => system => f90deletemyaccount => tmpl => js =>dma.js"). But it does not redirect to the home page for me.

This is the section of the code I replaced (in orange):

if(data.error == false){
setTimeout(function(){location.href = '/';}, 3000);
}

Am I missing something?

Thanks in advance!
Powered by Kunena Forum
Cron Job Starts