Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
instantflorian opened this issue Oct 18, 2021 · 0 comments

Comments

@instantflorian
Copy link
Contributor

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.

instantflorian pushed a commit that referenced this issue Feb 9, 2023
* Correct CodeMirror syntax for pure PHP without <?php opening tag

* debug_dump() function: some CSS and JS corrections

* Sign-up templates: addressing issue #512

---------

Co-authored-by: WebDesignWorx <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant