|
57 | 57 | '/user/wishlist/add/#product_id#' => ['module' => 'user/wishlist/add'],
|
58 | 58 | '/user/wishlist/remove/#product_id#' => ['module' => 'user/wishlist/remove'],
|
59 | 59 |
|
| 60 | + //user digital assets |
| 61 | + '/user/downloads/download/{customer_order_id}-{key}-{public}-#digital_asset_id#' => ['module' => 'user/downloads/download'], |
| 62 | + |
60 | 63 | '/user' => ['module' => 'user/index'],
|
61 | 64 |
|
62 | 65 | //search
|
|
65 | 68 | '/search/{search}/#page#' => ['module' => 'search'],
|
66 | 69 | '/search/{search}/{type}/#page#' => ['module' => 'search'],
|
67 | 70 |
|
68 |
| - //rest api |
69 |
| - '/rest/' => ['module' => 'rest'], |
70 |
| - '/rest/{method}' => ['module' => 'rest'], |
71 |
| - '/rest/{method}/{id}' => ['module' => 'rest'], |
72 |
| - |
73 | 71 | //ecommerce
|
74 | 72 |
|
75 | 73 | //catalog
|
|
86 | 84 | '/vendor/{slug}/#page#' => ['module' => 'product/vendor/index'],
|
87 | 85 | '/vendor' => ['module' => 'product/vendor/index'],
|
88 | 86 | '/vendor/#page#' => ['module' => 'product/vendor/index'],
|
89 |
| - '/product/{slug}' => ['module' => 'product/product/index', 'edit'=>'?module=product/product&slug={slug}'], |
| 87 | + //'/product/{slug}' => ['module' => 'product/product/index', 'edit'=>'?module=product/product&slug={slug}'], |
| 88 | + '/product/{slug}-#product_id#' => ['module' => 'product/product/index', 'edit'=>'?module=product/product&product_id={product_id}'], |
90 | 89 |
|
91 | 90 | //compare
|
92 | 91 | '/cart/compare' => ['module' => 'cart/compare/index'],
|
93 | 92 | '/cart/compare/add/#product_id#' => ['module' => 'cart/compare/add'],
|
94 | 93 | '/cart/compare/remove/#product_id#' => ['module' => 'cart/compare/remove'],
|
95 | 94 |
|
96 | 95 | //multi language catalog - language code must be at least 2 characters
|
97 |
| - '/{language{2,5}}/shop' => ['module' => 'product/index'], |
98 |
| - '/{language{2,5}}/shop/#page#' => ['module' => 'product/index'], |
99 |
| - '/{language{2,5}}/shop/{slug}' => ['module' => 'product/category/index'], |
100 |
| - '/{language{2,5}}/shop/{slug}/#page#' => ['module' => 'product/category/index'], |
101 |
| - '/{language{2,5}}/shop/{slug}/#page#/filters-{filters}' => ['module' => 'product/category/index'], |
102 |
| - '/{language{2,5}}/manufacturer/{slug}' => ['module' => 'product/manufacturer/index'], |
103 |
| - '/{language{2,5}}/vendor/{slug}' => ['module' => 'product/vendor/index'], |
104 |
| - '/{language{2,5}}/vendor/{slug}/#page#' => ['module' => 'product/vendor/index'], |
105 |
| - '/{language{2,5}}/product/{slug}' => ['module' => 'product/product/index', 'edit'=>'?module=product/product&slug={slug}'], |
| 96 | + '/{language{2,5}}/shop' => ['module' => 'product/index'], |
| 97 | + '/{language{2,5}}/shop/#page#' => ['module' => 'product/index'], |
| 98 | + '/{language{2,5}}/shop/{slug}' => ['module' => 'product/category/index'], |
| 99 | + '/{language{2,5}}/shop/{slug}/#page#' => ['module' => 'product/category/index'], |
| 100 | + '/{language{2,5}}/shop/{slug}/#page#/filters-{filters}' => ['module' => 'product/category/index'], |
| 101 | + '/{language{2,5}}/manufacturer/{slug}' => ['module' => 'product/manufacturer/index'], |
| 102 | + '/{language{2,5}}/vendor/{slug}' => ['module' => 'product/vendor/index'], |
| 103 | + '/{language{2,5}}/vendor/{slug}/#page#' => ['module' => 'product/vendor/index'], |
| 104 | + '/{language{2,5}}/product/{slug}-#product_id#' => ['module' => 'product/product/index', 'edit'=>'?module=product/product&product_id={product_id}'], |
106 | 105 |
|
107 | 106 | //checkout
|
108 | 107 | '/cart' => ['module' => 'cart/cart/index'],
|
|
142 | 141 |
|
143 | 142 | //post
|
144 | 143 | //'/#year{4,4}#-#month{1,2}#-#day#/{slug}' => ['module' => 'content/post/index', 'edit'=>'?module=content/post&slug={slug}'],
|
145 |
| - '/{slug}' => ['module' => 'content/post/index', 'edit'=>'?module=content/post&slug={slug}&type=post'], |
| 144 | + //'/{slug}' => ['module' => 'content/post/index', 'edit'=>'?module=content/post&slug={slug}&type=post'], |
| 145 | + '/{slug}-#post_id#' => ['module' => 'content/post/index', 'edit'=>'?module=content/post&post_id={post_id}&type=post'], |
146 | 146 | //page
|
147 | 147 | //'/{slug}' => ['module' => 'content/page/index', 'edit'=>'?module=content/post&slug={slug}'],
|
148 |
| - '/page/{slug}' => ['module' => 'content/page/index', 'edit'=>'?module=content/post&slug={slug}&type=page'], |
| 148 | + //'/page/{slug}' => ['module' => 'content/page/index', 'edit'=>'?module=content/post&slug={slug}&type=page'], |
| 149 | + '/page/{slug}-#post_id#' => ['module' => 'content/page/index', 'edit'=>'?module=content/post&post_id={post_id}&type=page'], |
149 | 150 |
|
150 | 151 | //multi language content - language code must be at least 2 characters
|
151 | 152 | '/{language{2,5}}/' => ['module' => 'index/index'],
|
152 | 153 | //pagination for blog posts
|
153 | 154 | '/{language{2,5}}/p/#page#' => ['module' => 'index/index'],
|
154 | 155 | //content
|
155 |
| - '/{language{2,5}}/blog' => ['module' => 'content'], |
156 |
| - '/{language{2,5}}/cat/{slug}' => ['module' => 'content/category/language'], |
157 |
| - '/{language{2,5}}/tag/{slug}' => ['module' => 'content/tag/index'], |
158 |
| - '/{language{2,5}}/{slug}' => ['module' => 'content/post/index', 'edit'=>'?module=content/post&slug={slug}'], |
159 |
| - '/{language{2,5}}/page/{slug}' => ['module' => 'content/page/index', 'edit'=>'?module=content/post&slug={slug}'], |
| 156 | + '/{language{2,5}}/blog' => ['module' => 'content'], |
| 157 | + '/{language{2,5}}/cat/{slug}' => ['module' => 'content/category/language'], |
| 158 | + '/{language{2,5}}/tag/{slug}' => ['module' => 'content/tag/index'], |
| 159 | + '/{language{2,5}}/{slug}-#post_id#' => ['module' => 'content/post/index', 'edit'=>'?module=content/post&post_id={post_id}'], |
| 160 | + '/{language{2,5}}/page/{slug}-#post_id#' => ['module' => 'content/page/index', 'edit'=>'?module=content/post&post_id={post_id}'], |
160 | 161 |
|
161 | 162 | '/{language{2,5}}/tag/{slug}' => ['module' => 'content/tag/index'],
|
162 | 163 | '/{language{2,5}}/tag/{slug}/#page#' => ['module' => 'content/tag/index'],
|
|
0 commit comments