[MAGNOLIA-6626] Generated links do not have always the same format Created: 11/Apr/16 Updated: 23/Feb/18 Resolved: 23/Feb/18 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | rendering, templating components |
| Affects Version/s: | 5.4.5 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Mercedes Iruela | Assignee: | Unassigned |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | blocked, support | ||
| Remaining Estimate: | 3.5d | ||
| Time Spent: | 1.5d | ||
| Original Estimate: | 5d | ||
| Issue Links: |
|
||||||||||||||||||||
| Template: |
|
||||||||||||||||||||
| Acceptance criteria: |
Empty
|
||||||||||||||||||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||||||||||||||
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
||||||||||||||||||||
| Date of First Response: | |||||||||||||||||||||
| Epic Link: | Align references and links implementations | ||||||||||||||||||||
| Story Points: | 8 | ||||||||||||||||||||
| Description |
|
Links generated by LinkUtil.createLink(node) should end up with the same link pattern always. It would not matter if the link is to a root page or a child one. Links should respect the pattern defined at /server@defaultExtension. For example, in Demopublic. You can see that generated link to root page in the header (magnolia logo) is generated to href='/' and the rest of the links are generated to '/*.html'. This happens when the generated link points to a site definition root node. Changed link render manager from MultiSiteLinkTransformerManager to LinkTransformerManager and works in the same way. |
| Comments |
| Comment by Mikaël Geljić [ 06/Dec/16 ] |
|
So, I got some pointers and skimmed through those tickets re: "strict extensions":
It is in fact documented at https://documentation.magnolia-cms.com/display/DOCS/MIME+type+mapping, was just not quite an easy find oanh.thai can we confirm whether it solves the client's request? |
| Comment by Mikaël Geljić [ 06/Dec/16 ] |
|
... and (couldn't resist) actually it does not prevent accessing the page:
Access is only prevented if extension is undeclared or incompatible MIMEtype-wise. |
| Comment by Mercedes Iruela [ 23/Feb/18 ] |
|
Closed because the behavior cannot be reproduced again. |