Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-12914

Add extra convenience method #toUrlForm to HstLink

    XMLWordPrintable

Details

    • Improvement
    • Status: Open
    • Normal
    • Resolution: Unresolved
    • None
    • None
    • site-toolkit
    • None

    Description

      Only current available method is org.hippoecm.hst.core.linking.HstLink#toUrlForm(HstRequestContext, boolean). I think that the number of times you want a fully qualified URL (and thus set the boolean to true) is very low (for REST output for example). Now you must always set that and think about that.

      A HstLink#toUrlForm() would be a nice addition, which by default would give relative URLs. Can the HstRequestContext parameter also go? The code internally can get it easily with

      RequestContextProvider.get(). No need to pass it to the method.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bleunis Bert Leunis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: