BUG: Usage urls are broken because of port rendered to url in docker setup
Description
We have a docker compose setup for Neos where Neos is running on port 8081. On our staging and production environment we don't have a port in the url but the usage urls for images are generated with the server port where Neos is running. When clicking on such a link we get a broken page. When we remove the port from the Url the Usage link works correctly. It's also not a problem with the old Media modul.
Steps to Reproduce
- Running docker compose setup where Neos is running on a defined port in satging or production setup
- Login into neos backend and go to new Media Ui
- Click on "Show usages" for an image
- Hover over image label and see url with port
Expected behavior
Port should not be rendered to usage url in staging an production context.
Actual behavior
Port is rendered to usage url in staging an production context.
Affected Versions
Neos: 8.3.0
UI: 8.3.0
Media Module: 1.2.0
I assume the URLs are fine in the frontend?
@kitsunet I implemented a hack way to build the Uris for this view back then in \Flowpack\Media\Ui\Service\UsageDetailsService::buildNodeUri, but I don't know exactly why anymore. Quite possible there is a bug in there.