How To / General

Use logout with redirect problems

  • saman سامان
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
  • samansamani2[at]yahoo.com
More
8 years 9 months ago - 8 years 9 months ago #1 by saman سامان
Use logout with redirect problems was created by saman سامان
hi
i have 2 problem with this option:
Use logout with redirect
1- when i use some language other than English,it's show wrong words.look at the pic:






2- when i use this option, and my user logout from moodle, then they redirect to wrong url:
*******.com//index.php?option=com_joomdle&task=do_logout
Last edit: 8 years 9 months ago by saman سامان.

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

More
8 years 9 months ago - 8 years 9 months ago #2 by Antonio Durán
Replied by Antonio Durán on topic Use logout with redirect problems
Hi.

1. I don't know why this happens. Try deleting Moodle cache and reload.

2. I tried locally and I see the problem with a different url:
*******.com//components/com_joomdle/views/wrapper/getout_logout.php
To fix it, edit file: components/com_joomdle/controller.php
Almost at the end of the file, change:
Code:
$app->redirect (JURI::root () . '/components/com_joomdle/views/wrapper/getout_logout.php');
By:
Code:
$app->redirect (JURI::root () . 'components/com_joomdle/views/wrapper/getout_logout.php');
Last edit: 8 years 9 months ago by Antonio Durán.

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

  • Web Buster UK Ltd
  • Offline
  • Elite Member
  • Elite Member
More
8 years 9 months ago - 8 years 9 months ago #3 by Web Buster UK Ltd
Replied by Web Buster UK Ltd on topic Use logout with redirect problems
Seems to encounter this issue as well.

When we click logout from moodle, it redirects to *****.com//index.php?option=com_joomdle&task=do_logout

Found where the issue comes from, it only occurs when we have "Logout with redirect" turned on in the moodle Joomdle plugin.
Last edit: 8 years 9 months ago by Web Buster UK Ltd.

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

More
8 years 9 months ago #4 by Antonio Durán
Replied by Antonio Durán on topic Use logout with redirect problems
Did you make the proposed code change to see if that solves the issue?

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