sabbelasichon / typo3_encore

Use Webpack Encore within TYPO3
Other
106 stars 19 forks source link

Fix pathes for sites running on "subdirectory" #198

Closed mueller-sebastian closed 1 year ago

mueller-sebastian commented 1 year ago

If the base configuration of a site contains a subpath, eg

base: 'https://yourdomain-11.ddev.site/newsroom'

and working with https://github.com/sabbelasichon/typo3_encore#working-with-typo3cms-composer-installers-4-or-typo3-12, Encore file pathes in FE are relative and not absolute and therefor not working.

While reading code and issues, I found that $GLOBALS['TYPO3_CONF_VARS']['FE']['additionalAbsRefPrefixDirectories'] would do the trick.

I would suggest adding this information to the README file.

sabbelasichon commented 1 year ago

@mueller-sebastian Yes, feel free to open a PR for that feature