Commit 7c12ffe
committed
fix(feature): build url shortener feature url with trailing slash
initUrlShortener() appended the branch directly to public_urls without a
trailing slash, so DEPLOYER_CONFIG_FEATURE_URL (TYPO3_BASEURL) became
"https://host/BRANCH". Consumer projects derive the site base and string-
concatenated values (e.g. %env(TYPO3_BASEURL)%sitemap.xml) from it, which
broke absolute URLs/breadcrumbs and caused 504 hangs.
Build the URL slash-robust so it always ends with "/" regardless of whether
public_urls is configured with or without a trailing slash:
rtrim($publicUrl, '/') . '/' . $feature . '/'.
NOTE: feature .env files are generated only once ("once generated"
feature_templates). Existing feature instances must re-init (re-run
feature:setup / re-generate .env) for the corrected URL to take effect.1 parent 86b89d4 commit 7c12ffe
1 file changed
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
9 | 13 | | |
10 | 14 | | |
11 | 15 | | |
| |||
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
38 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
39 | 45 | | |
40 | 46 | | |
41 | 47 | | |
42 | 48 | | |
43 | 49 | | |
44 | 50 | | |
45 | 51 | | |
46 | | - | |
| 52 | + | |
47 | 53 | | |
48 | 54 | | |
49 | 55 | | |
| |||
0 commit comments