-
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
-
External issue URL:
-
Change Log Message:Option to select default URL ending for Pages
-
External issue ID:454
-
Copy Issue Key:
-
Patch Instructions:
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]
- Default URL Ending is config variable (drop-down options: ".html", "/", "empty")
- 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.