WBCE / WBCE_CMS

Core package of WBCE CMS. This package includes the core and the default addons. Visit https://wbce.org (DE) or https://wbce-cms.org (EN) to learn more or to join the WBCE CMS community.
https://wbce-cms.org
GNU General Public License v2.0
32 stars 22 forks source link

account/login.php, account/logout.php: Issues with shortUrl & intro page #512

Open instantflorian opened 2 years ago

instantflorian commented 2 years ago

line 29 in login.php reads $sRedirect = ($sRedirect != '') ? $sRedirect : WB_URL . ((INTRO_PAGE) ? PAGES_DIRECTORY : '') . '/index.php'; and accordingly logout.php, l.34ff if (INTRO_PAGE) { header('Location: ' . WB_URL . PAGES_DIRECTORY . '/index.php'); } what means, that in case of an activated intro page the user is redirected to wbcedomain.tld/pages/index.php. This is transformed by shortURL into wbcedomain.tld/index/, which leads into a 404 not found error. Beside of this even on usual pages the pages/index.php is no real page, but just a redirect to wbcedomain.tld/index.php.

I think there was once an issue with an endless redirect in case of an activated intro page and a private/registered starting page, and to avoid this, the redirect to pages/index.php was choosen, but I think this solution actually has some disadvantages too.