Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Fixed redirect failure after login #2545
This bug appears on the website isn't hosted on port 80/443.
For example, The
Don't revert #2542, please.
This looks like it will always add
* Attempt at fixing #2603 and superseding #2545 This all boils down to redirecting to $_SERVER['REQUEST_URI'] after successful login Thanks @hangxingliu and @pcolmer for insightful feedbacks which has led to this PR * Refactor slightly the redirect function - no dying - no output if we're on cli * Update tests/includes/utils.php Co-Authored-By: Léo Colombaro <firstname.lastname@example.org> * Update includes/functions.php Co-Authored-By: Léo Colombaro <email@example.com> * Rewrite yourls_get_request() Do not rely on HOSTNAME, HTTP_HOST or whatever, just use YOURLS_SITE * Remove leftover comment [skip ci] [skip scrutinizer] Co-authored-by: Léo Colombaro <firstname.lastname@example.org>