Closed ronykhoury closed 4 years ago
@kitsunet As you requested in slack, I'm tagging you to this issue.
A very simple way to reproduce the issue is to look at the header in a default neos-base-distribution or neos-dev-distribution. The neos-logo should linke the root of the site but actually has an empty href <a href>
The uriBuilder already returns an empty string "" as url for the site node while in 4.3 it correctly returned "/".
I managed to verify that the frontendNodeRoutePartHandler also did not change between 4.3 an 5.0 it return "" as path for the site node. My current suspicion is that the Router in Flow changed the handling of empty pathes unintentionally.
This bug is pretty critical since it breaks the "Home" link (e.g. in the menu when clicking on the logo) for many production sites. An empty href attribute will cause the browser to stay on the page instead of navigating to the home page.
I found the bug beeing introduced recently in commit https://github.com/neos/flow-development-collection/commit/9cb62156fd8f452447d743729039fbe95d66ee5d For me https://github.com/janpawellek/flow-development-collection/commit/41b9a38200a0cd332d0f3915804da556a9d0bdfb fixes the issue, however I don't understand the implications (at least tests won't work anymore). So this might not be the proper way to fix it. Maybe @skurfuerst can help?
@janpawellek can you open a pr for that since you already have a solution
Hey, I'll also check the stuff. Sorry for the breakage!
All the best, Sebastian
@janpawallek @mficzel @kitsunet IMHO the fix is great the way you prepared it; I fixed the testcases in https://github.com/neos/flow-development-collection/pull/1839.
IMHO this case happens now because https://github.com/neos/flow-development-collection/pull/1804/files#diff-fcf7039aeecafa562dd6ad82a86bb3b4R361 has changed.
All the best, Sebastian
Great, thank you for the fast fix @skurfuerst !
Description
The URL to the root node should be a slash
/
. Instead thehref
attribute of thea
-tag is completely empty.Steps to Reproduce
Here's an example Fusion template to generate a link list (navigation, etc.):
Expected behavior
The link pointing to the root page should look like this:
Actual behavior
The URL to the root page is not being generated. The
href
attribute is empty.Affected Versions
Neos/Flow: Tested with the latest Neos packages (list created via
composer show | grep "neos/"
):PHP: PHP Version => 7.3.9-1+0~20190902.44+debian9~1.gbpf8534c