[BUGFIX] Remove double 'typo3' from Logout Button URL in Re-Login Dialog 88/38488/2
authorAnja Leichsenring <aleichsenring@ab-softlab.de>
Sun, 5 Apr 2015 09:17:25 +0000 (11:17 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Sun, 5 Apr 2015 13:59:45 +0000 (15:59 +0200)
As a leftover from the unified backpath handling patch, the Logout Button
in the login refresh modal dialog led to a wrong page, due to doubled
typo3 in the URL.

Change-Id: Ieda9134efd175035801b9b36331333439e43d084
Resolves: #66277
Relates: #66052
Releases: master
Reviewed-on: http://review.typo3.org/38488
Reviewed-by: Andreas Fernandez <andreas.fernandez@aspedia.de>
Tested-by: Andreas Fernandez <andreas.fernandez@aspedia.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Resources/Public/JavaScript/LoginRefresh.js

index 62cbcb7..a2f2f4d 100644 (file)
@@ -113,7 +113,7 @@ define('TYPO3/CMS/Backend/LoginRefresh', ['jquery', 'bootstrap'], function($) {
                                });
                        }),
                        $('<button />', {class: 'btn btn-default', 'data-action': 'logout'}).text(TYPO3.LLL.core.refresh_direct_logout_button).on('click', function() {
-                               top.location.href = TYPO3.configuration.siteUrl + TYPO3.configuration.TYPO3_mainDir + LoginRefresh.logoutUrl;
+                               top.location.href = TYPO3.configuration.siteUrl + LoginRefresh.logoutUrl;
                        })
                );
 
@@ -204,7 +204,7 @@ define('TYPO3/CMS/Backend/LoginRefresh', ['jquery', 'bootstrap'], function($) {
                LoginRefresh.$loginForm.find('.modal-footer').append(
                        $('<button />', {type: 'submit', form: 'beLoginRefresh', class: 'btn btn-default', 'data-action': 'refreshSession'}).text(TYPO3.LLL.core.refresh_login_button),
                        $('<button />', {class: 'btn btn-default', 'data-action': 'logout'}).text(TYPO3.LLL.core.refresh_direct_logout_button).on('click', function() {
-                               top.location.href = TYPO3.configuration.siteUrl + TYPO3.configuration.TYPO3_mainDir + LoginRefresh.logoutUrl;
+                               top.location.href = TYPO3.configuration.siteUrl + LoginRefresh.logoutUrl;
                        })
                );