Skip to content

[BUGFIX] Remove interpolation braces from Slack footer link - #314

Merged
andreaskienast merged 1 commit into
TYPO3GmbH:developfrom
CybotTM:fix/slack-footer-link
Aug 25, 2026
Merged

[BUGFIX] Remove interpolation braces from Slack footer link#314
andreaskienast merged 1 commit into
TYPO3GmbH:developfrom
CybotTM:fix/slack-footer-link

Conversation

@CybotTM

@CybotTM CybotTM commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

The repository discovery message prints its footer link verbatim in Slack: TYPO3 Intercept · <{https://github.com/TYPO3GmbH/site-intercept/blob/develop/src/Service/SlackService.php}|(?)>.

Cause: f055d02 moved the URL into self::SOURCE_URL and rewrote the footer as a sprintf() format. The braces are PHP interpolation syntax: they disappear in the previous "TYPO3 Intercept · <{$sourceUrl}|(?)>", but stay literal in a format string, and Slack parses <url|label> only with a bare URL. The footer link rendered fine before that commit.

Fix: drop the braces from the format string. (?) is a link again.

Tests: the two existing footer assertions match substrings (github.com/TYPO3GmbH/site-intercept, SlackService.php) and pass on the broken markup, which is why this went unnoticed. The test now also requires every <url|label> target in text and in footer to be a bare absolute URL. Verified by reverting the fix — the new assertion fails on {https://…} and passes with it.

Note on local verification: the functional suite boots the test kernel, which needs the private t3g/lib-test-helper, so I ran the assertions locally against a directly instantiated SlackService with test doubles. CI runs the committed test.

Unrelated to #313, which adds a repository link to the message text — that PR fails on a separate fixture gap (DocumentationJar::$repositoryUrl is never set in the test).

Assisted by claude-code:claude-opus-5 — Session

@CybotTM
CybotTM marked this pull request as ready for review August 24, 2026 11:55
f055d02 moved the source URL into a constant and turned the footer into a
sprintf() format. The braces around the placeholder are PHP interpolation
syntax and only vanish inside a double quoted string, so Slack now receives
`<{https://…/SlackService.php}|(?)>` and prints that verbatim instead of the
"(?)" link.

The existing footer assertions match substrings and pass on the broken markup,
so the test additionally requires every link target in the text and in the
footer to be a bare URL.

Assisted-by: claude-code:claude-opus-5
Agent-Session: https://claude.ai/code/session_014H1xwaAmrQRWUA3vx8bJcD
Agent-Host: 0493f0
Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
@andreaskienast
andreaskienast merged commit 3387477 into TYPO3GmbH:develop Aug 25, 2026
3 checks passed
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.

2 participants