Commit 0b9841bb authored by Thomas Löffler's avatar Thomas Löffler

Merge branch '615-overlay-menu-under-avatar-is-empty-on-use-typo3-slack-page' into 'master'

Resolve "overlay Menu under avatar is empty on "use TYPO3 Slack" page"

Closes #615

See merge request !567
parents 5dc309ae 96cf6431
......@@ -58,7 +58,7 @@ FlyOutAjaxLogin.prototype.authenticationRequest = function(event, form) {
};
FlyOutAjaxLogin.prototype.initMenuBar = function() {
const returnUrl = window.location.href;
const returnUrl = encodeURIComponent(window.location.href);
FlyOutAjaxLogin.callAjax('/index.php?eID=FlyOutAjaxLoginController&returnUrl=' + returnUrl, function (response) {
if (response !== null || response !== undefined || response !== '') {
const login = JSON.parse(response);
......@@ -74,7 +74,7 @@ FlyOutAjaxLogin.prototype.initMenuBar = function() {
};
FlyOutAjaxLogin.prototype.initLoginLogoutTemplate = function () {
const returnUrl = window.location.href;
const returnUrl = encodeURIComponent(window.location.href);
FlyOutAjaxLogin.callAjax('/index.php?type=4444&returnUrl=' + returnUrl, function (response) {
if (response !== null || response !== undefined || response !== '') {
const aim = document.querySelector('.js__full-width-dropdown__lvl-down[data-parent-lvl1="' + $('#mainNav').data('login-pid') + '"]');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment