-
Type: Feature Request
-
Status: Closed
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 5.2.0-B1
-
Fix Version/s: 5.2.0-RC1
-
Component/s: Optimization
-
Labels:
-
External issue URL:
-
Change Log Message:Simplifies working with urls
-
Story Points:1
-
External issue ID:1288
-
Copy Issue Key:
-
Patch Instructions:
Since rewrite listeners were first introduced in #0000098 I we've used them on several projects. And I wanted to share some improvements we've done with the community.
That includes following changes to widget rewrite listener (in Development Kit module):
1. reduced SQL count when building url because of actual url part passed to rewrite builder right from $object (see WidgetTagProcessor::ItemLink tag)
2. always use physical template when building url when deciding whatever to include it in url or not (when it's default item detail template)
3. allow for rewrite parser to intellectually search for url part it require ignoring changes made to other parts of url:
- worked before: "/widgets/widget-filename.html"
- works now: "/text-before/widgets/widget-filename/text-after"
4. easily check if there are unparsed url parts and there are none then set rewrite parser default item detail template