Bug #71843
closedforceAbsoluteUrl has no effect
100%
Description
In the current development version 7.6.1.dev, works setting
typolink.forceAbsoluteUrl = 1
only on the local server installation.
The output in the source code is right here:
http://www.example.com/index.php?id=1
But at the same configuration of the online server, the output is not the domain or baseurl
The output is incomplete here:
index.php? id = 1
Many thanks
Harald
Updated by Mathias Schreiber almost 9 years ago
- Status changed from New to Needs Feedback
- Assignee set to Mathias Schreiber
- Target version changed from 7.6.1 to Candidate for patchlevel
can you add a domain record and try again please?
Updated by Harald no-lastname-given almost 9 years ago
That's what I've tried. Has changed nothing!
As already said. In version 7.6.0 this error does not occur
Updated by Wouter Wolters almost 9 years ago
- Status changed from Needs Feedback to Accepted
Sebastian Michaelsen wrote:
This is were it broke: https://github.com/TYPO3/TYPO3.CMS/commit/dacd79bc67c814a4f622dc6bd299ceb521aa325f#diff-fb30f860811e026eb162ad4095fa44e4R6692
parse_url() doesn't always return a host. With the weak comparison it matched the empty string.
Should be something like:
if (!isset($urlParts['host']) || $urlParts['host'] === '') {
Updated by Harald no-lastname-given almost 9 years ago
Unfortunately, I understand PHP too little.
I have the modified "ContentObjectRenderer.php" tried or overwrite the original file.
But this has no effect on the online server version. The URL is not complete. So without baseurl.
But probably all still in progress and not yet completed.
Thank you
Harald
Updated by Gerrit Code Review almost 9 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/44972
Updated by Gerrit Code Review almost 9 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/44972
Updated by Gerrit Code Review almost 9 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/44972
Updated by Anonymous almost 9 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 0c3299cee6d2c592e5ac7a01099b66bca6b1d3b1.
Updated by Harald no-lastname-given almost 9 years ago
I can only say, perfect!
thank you