Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCU-3486

Upgrade Virtual URI mapping documentation

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Neutral
    • None
    • None
    • None
    • None

    Description

      A customer has reported some points that are not properly documented at the Virtual Uri Mapping documentation entry.

      In the chapter https://docs.magnolia-cms.com/product-docs/6.2/Administration/URI-mapping/Virtual-URI-mapping.html#_examples under "Host-based regex" the YAML is missing a node. Directly above the node mappings should be a freely-named subnode (which is missing in the example) and beneath that, there should be the host and toUri properties, something as:

      class: info.magnolia.virtualuri.mapping.HostBasedRegexpVirtualUriMapping
      fromUri: /premier/(.*)$
      toUri: forward:/404
      mappings:
        myMapping:
          host: example.net
          toUri: redirect:/premier-edge/$1
      

      Also would be nice to clarify (may be with a warning or an info box) that the "host" property is not a regex, even if the class name HostBasedRegexpVirtualUriMapping" sounds like that (the name could lead into confusion)

      Finally, as a reminder or another warning, would be cool to highlight that host works for all subdomains of the defined domain.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              mdrapela Martin DrĂ¡pela
              ccantalapiedra Carlos Cantalapiedra
              Documentation
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Checklists

                  Task DoR