Skip to content

[BUGFIX] Provide request for links in info window content - #380

Merged
sfroemkenjw merged 1 commit into
mainfrom
bugfix/379-info-window-link-request
Oct 1, 2026
Merged

sfroemkenjw merged 1 commit into
mainfrom
bugfix/379-info-window-link-request

Conversation

@sfroemkenjw

Copy link
Copy Markdown
Contributor

Set $GLOBALS['TYPO3_REQUEST'] while rendering the info window content view.

f:transform.html resolves links via LinkFactory::createUri() without a ContentObjectRenderer, which falls back to the global request. Within GetInfoWindowContentMiddleware this global is not set yet (it is set in RequestHandler after all middlewares), so rendering internal page links failed with a TypeError.

The previous value is restored after rendering. This is a temporary workaround: switching to f:format.html would change the rendering for existing installations and should be evaluated with the TYPO3 15 major release (see ToDo in code).

Resolves: #379

🤖 Generated with Claude Code

Set $GLOBALS['TYPO3_REQUEST'] while rendering the info window
content view. f:transform.html resolves links via
LinkFactory::createUri() without a ContentObjectRenderer, which
falls back to the global request. Within a middleware this global
is not set yet, so rendering internal page links failed with a
TypeError.

The previous value is restored after rendering. This is a temporary
workaround until a switch to f:format.html can be evaluated with
TYPO3 15.

Resolves: #379

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sfroemkenjw
sfroemkenjw merged commit 5d8ed6d into main Oct 1, 2026
6 checks passed
@sfroemkenjw
sfroemkenjw deleted the bugfix/379-info-window-link-request branch October 1, 2026 12:44
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

Successfully merging this pull request may close these issues.

TypeError in LinkFactory::createUri() when info_window_content contains an internal page link (TYPO3 14)

1 participant