Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-379

Customizable URL Endings for Mod-rewrite

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0.1
    • Fix Version/s: 5.1.0-B1
    • Component/s: Template System
    • Labels:
      None

      Description

      Currently all mod-rewrite urls are ended with ".html". This is not quite
      customizable. I propose to create a configuration variable e.g.
      RewriteUrlEnding of dropdown type with such values: "" (empty), "/",
      ".html". To be more custom user could specify url ending for each url
      individually using "url_ending" parameter of "m_Link" tag (e.g. <inp2:m_Link
      template="path/to/template" url_ending="/"/>).

      During parsing all possible rewrite url ending will be stripped from the end
      of url before passing it to registered rewrite listeners. In case if
      developer have specified it's own url ending (via "url_ending" parameter),
      then of course it won't be stripped properly.

      [B]Proposed course of action:[/B]

      1. Default URL Ending is config variable (drop-down options: ".html", "/", "empty")
      2. Ability to force URL ending for HREF method with new Parameter passed to all Link building tags.

      Example <inp2:m_Link template="path/to/template" url_ending="/"/> tag.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
                Developer:
                Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: