Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-3925

MagnoliaTemplatingUtilities.createLink should have a version where you can supply a custom extension... or none at all

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Neutral
    • Resolution: Won't Do
    • 4.4.2
    • None
    • templating
    • None

    Description

      mgnl.createLink() seems to be the proper way to add links to your template. Unfortunately when you need a link with a selector (e.g. /link/to/my/page.with.3.selectors.html), you're out of luck since createLink() always appends ".html" to the link. You would have to remove the extension, add the selectors and append the extension back to the link (= ugly hack). It would be better to have createLink methods where you can also provide the extension, or if set to null or "" no extension is added at all.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                will Will Scheidegger
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    DoD

                    CI Builds

                      No builds found.