Uploaded image for project: 'Blossom'
  1. Blossom
  2. BLOSSOM-220

UuidRedirectView prefixes url with handle, ignores domain

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 3.1.1
    • 3.1
    • None
    • None

    Description

      UuidRedirectView uses method LinkUtil.convertUUIDtoURI(uuid, workspace). This method currently calls: LinkTransformerManager.getInstance().getAbsolute(false).transform(createLinkInstance(workspaceName, uuid))
      returning /siteName/page.html
      following works better:
      LinkTransformerManager.getInstance().getAbsolute(true).transform(createLinkInstance(workspaceName, uuid)):
      /page.html
      where getAbsolute parameter is boolean addContextPath - this setting affects more than it's documented:

      Creates instance of absolute link transformer that will optionally prepend the context path, but will always use URI2Repository mapping while constructing links and will localize the link if localization is set up.
      

      Also UuidRedirectViewResolver creates UuidRedirectView directly. Wouldn't it be better to use Components.newInstance here?

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              tmattsson Tobias Mattsson
              rmikoda Robert Mikoda
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD