I have version 2.7 and since I update to this version when users log in they are redirected to amelia backend user dashboard and before they were staying in the home page. How can I deactivate this redirection?
I am not aware I change anything. I tried debug mode and uninstalling Amelia everything works fine and when a user logs in he stays in the front end. When I activate Amelia the redirection to Amelia BAck end after the user logsin happen
// Block Access to /wp-admin for non admins.
function custom_blockusers_init() {
if ( is_user_logged_in() && is_admin() && !current_user_can( 'administrator' ) ) {
wp_redirect( home_url() );
exit;
}
}
add_action( 'init', 'custom_blockusers_init' ); // Hook into 'init'
So whatever caused your wp-admin login page to redirect users to the home page instead of wp-admin should still be doing that.
I'll reach out to our development team, and see if there's anything we can do to modify Amelia's behavior, so it redirects to the home page, and I'll get back to you as soon as I receive a response.
Hi Aleksandar,I will try tonight. I understand what you say that by default WP redirects to dashboard but it was not happening with previous versions of Amelia and I think my theme, that has login functions, was doing th redirect to the front end web page properly before updating Amelia. I will try your work arround and let you know. Guillermo
I doubt there will be anything we can do about this, since - like I mentioned - WordPress redirects all users that log in through www.yoursite.com/wp-admin or www.yoursite.com/wp-login.php to the dashboard (wp-admin) by default. WooCommerce is changing that, so we've simply commented a line of code in our file to override this behavior.
I'll ask our developers, but I can't promise anything.
Please ask the developer team. This is just happening woth Amelia plugin activated.
I will ask woocommerce tol but they will tell me to stop using Amelia plugin.
as I said, maybe there is a work arround that does not involve touching the pho each time. The issue of touching the pho is that I would need to do it each time you update Amelia and that is not appropriate from operations perspectieve.
Like I said - I'll ask our developers, so it'll be up to them if this will be changed or not. I personally have over a hundred tickets every day, and you're the first one to report this. We implement things based on customers' requests. If multiple customers are asking for the same thing, more likely that's going to be implemented. That's why I said I don't believe we'll be making that change - it's not asked - but I have already forwarded your request to our development team, to take into consideration.
You can add it as a feature suggestion as well on this page.
Hi,
I have version 2.7 and since I update to this version when users log in they are redirected to amelia backend user dashboard and before they were staying in the home page. How can I deactivate this redirection?
thanks,
Guillermo
Hello Guillermo
Nothing has been changed regarding this.
The page redirect is not being handled by Amelia, but by WordPress, so you should check if there are any changes in WordPress settings.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
I am not aware I change anything. I tried debug mode and uninstalling Amelia everything works fine and when a user logs in he stays in the front end. When I activate Amelia the redirection to Amelia BAck end after the user logsin happen
Hello again Guillermo
By default, WordPress redirects all users that log in through www.yoursite.com/wp-admin or www.yoursite.com/wp-login.php to the dashboard (wp-admin), and to change that, you usually need a 3rd party plugin, like WP Redirect To Homepage After Login. Also, some themes have that included in their functions.php file, like (for example):
So whatever caused your wp-admin login page to redirect users to the home page instead of wp-admin should still be doing that.
I'll reach out to our development team, and see if there's anything we can do to modify Amelia's behavior, so it redirects to the home page, and I'll get back to you as soon as I receive a response.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hello again Guillermo
Can you please access ../wp-content/plugins/ameliabooking/ameliabooking.php and on line 183 find this code:
Comment it, so it looks like this:
Save the file, and try again.
Please let me know if that works.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hi Aleksandar,I will try tonight. I understand what you say that by default WP redirects to dashboard but it was not happening with previous versions of Amelia and I think my theme, that has login functions, was doing th redirect to the front end web page properly before updating Amelia.
I will try your work arround and let you know.
Guillermo
Thank you Guillermo
I hope you managed to make it work.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hi Aleksandar,
SOrry for the late reply.
I can confirm you that the workarround works well. I tried several times comenting and uncomenting that line.
Will this be solved in future releases so I do not touch directly the php?
Can I add a code snippet to avoid touching the php?
Thanks,
Guillermo
Hello again Guillermo
I'm glad to hear it works.
I doubt there will be anything we can do about this, since - like I mentioned - WordPress redirects all users that log in through www.yoursite.com/wp-admin or www.yoursite.com/wp-login.php to the dashboard (wp-admin) by default. WooCommerce is changing that, so we've simply commented a line of code in our file to override this behavior.
I'll ask our developers, but I can't promise anything.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
i am not sure I understand your reasoning.
Please ask the developer team. This is just happening woth Amelia plugin activated.
I will ask woocommerce tol but they will tell me to stop using Amelia plugin.
as I said, maybe there is a work arround that does not involve touching the pho each time. The issue of touching the pho is that I would need to do it each time you update Amelia and that is not appropriate from operations perspectieve.
thank you,
Guillermo
Hi again Guillermo
Like I said - I'll ask our developers, so it'll be up to them if this will be changed or not. I personally have over a hundred tickets every day, and you're the first one to report this. We implement things based on customers' requests. If multiple customers are asking for the same thing, more likely that's going to be implemented. That's why I said I don't believe we'll be making that change - it's not asked - but I have already forwarded your request to our development team, to take into consideration.
You can add it as a feature suggestion as well on this page.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables