Uploaded image for project: 'Click'
  1. Click
  2. CLK-303

Menu does not encodeURL

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • extras
    • None
    • Click 1.4RC2

    Description

      Need to update getHref from this:

      public String getHref() {
      if (isExternal() || "#".equals(getPath()))

      { return getPath(); } else { return getContext().getRequest().getContextPath() + "/" + getPath(); }
      }

      to this:

      public String getHref() {
      if (isExternal()) { return getPath(); }

      else if ("#".equals(getPath()))

      { return getContext().getResponse().encodeURL(getPath()); }

      else

      { return getContext().getResponse().encodeURL(getContext().getRequest().getContextPath() + "/" + getPath()); }

      }

      I am not 100% sure if we should call encodeURL if path equals '#'.

      Attachments

        Activity

          People

            sabob Bob Schellink
            sabob Bob Schellink
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: