Bug #52474
closedRedirect generates wrong URLs if config.absRefPrefix is set to /
0%
Description
This is still an issue for at least 4.5 (no kidding).
It could be resolved if Tx_Extbase_MVC_Controller_AbstractController->redirect calls ->setCreateAbsoluteUri(TRUE) when building the link (which should be fine?).
Alternatively addBaseUriIfNecessary / getBaseURI could be fixed to not add whatever is after the domain name, but I'd guess that has more consequences.
Steps to reproduce:
- set config.absRefPrefix to /
- Build redirect link
Files
Updated by Marc Bastian Heinrichs almost 11 years ago
- Status changed from New to Needs Feedback
What is the wrong URL in this case?
Updated by Patrick Schriner almost 11 years ago
:D stupid me!
It's getting the first "/" twice: http://www.domain.com//index.php?id=34234
(As someone noted in the other related ticket: probably everything is duplicated)
Updated by Markus Günther almost 11 years ago
- File Bildschirmfoto_2013-11-10_um_15.15.06.png Bildschirmfoto_2013-11-10_um_15.15.06.png added
- File T3X_redirect_test-0_0_1-z-201311101416.t3x T3X_redirect_test-0_0_1-z-201311101416.t3x added
I have created a little test extension to find out if this is still a problem. And it is reproduceable.
Updated by Alexander Opitz almost 10 years ago
- Project changed from 534 to TYPO3 Core
- Category changed from Extbase: MVC to Extbase
- Status changed from Needs Feedback to New
- Target version deleted (
4.5.30) - TYPO3 Version set to 4.5
- Is Regression set to No
Updated by Benni Mack about 9 years ago
- Target version set to 7.4 (Backend)
- Sprint Focus set to On Location Sprint
Updated by Marcel Wieser about 9 years ago
As far as I can see, this issue doesn't exist in the current master anymore.
Updated by Tobias Liebig about 9 years ago
I also can't reproduce this in 7.4-dev.
Also \TYPO3\CMS\Extbase\Mvc\Controller\AbstractController::redirect already correctly sets ->setCreateAbsoluteUri(TRUE) as suggested.
Updated by Susanne Moog about 9 years ago
- Target version changed from 7.4 (Backend) to 7.5
Updated by Anja Leichsenring about 9 years ago
- Sprint Focus changed from On Location Sprint to Remote Sprint
Updated by Nicole Cordes almost 9 years ago
- File redirect_test_0.0.2_201509121124.zip redirect_test_0.0.2_201509121124.zip added
- Status changed from New to Resolved
Attached a current version of the test extension which proofs that is issue is solved.
Updated by Riccardo De Contardi almost 7 years ago
- Status changed from Resolved to Closed