@@ -22,16 +22,21 @@ component
2222 ****************************************************************/
2323
2424 property
25- name = " cachebox"
25+ name = " cachebox"
2626 inject = " cachebox"
2727 delegate = " getCache" ;
28+
2829 property
2930 name = " controller"
30- inject = " coldbox"
31+ inject = " coldbox"
3132 delegate = " relocate,runEvent,runRoute" ;
33+
3234 property name = " flash" inject = " coldbox:flash" ;
35+
3336 property name = " logBox" inject = " logbox" ;
37+
3438 property name = " log" inject = " logbox:logger:{this}" ;
39+
3540 property
3641 name = " wirebox"
3742 inject = " wirebox"
@@ -101,15 +106,6 @@ component
101106 */
102107 property name = " baseURL" type = " string" ;
103108
104- /**
105- * This flag denotes if full URL rewrites are enabled or not. Meaning if the `index` is in the path of the rewriter or not.
106- * The default value is **false**.
107- */
108- property
109- name = " fullRewrites"
110- type = " boolean"
111- default = " false" ;
112-
113109 /**
114110 * This flag denotes that the routing service will discover the incoming base URL from the host + ssl + environment.
115111 * If off, then it will use whatever the base URL was set in the router.
@@ -174,8 +170,7 @@ component
174170 variables .validExtensions = variables .VALID_EXTENSIONS ;
175171 // Initialize the base URL as empty in case the user overrides it in their own router.
176172 variables .baseUrl = " " ;
177- // Are full rewrites enabled
178- variables .fullRewrites = false ;
173+ // Multi domain discovery on by default
179174 variables .multiDomainDiscovery = true ;
180175
181176 return this ;
@@ -201,11 +196,6 @@ component
201196 variables .baseUrl = composeRoutingUrl ();
202197 }
203198
204- // Check if rewrites turned off. If so, append the `index` to it.
205- if ( ! variables .fullRewrites AND ! findNoCase ( frontController , variables .baseURL ) ) {
206- variables .baseURL & = " /#frontController #" ;
207- }
208-
209199 // Remove any double slashes: sometimes proxies can interfere
210200 variables .baseURL = reReplace ( variables .baseURL , " \/\/$" , " /" , " all" );
211201
@@ -1964,9 +1954,7 @@ component
19641954 * Composes the base routing path with no host or protocol
19651955 */
19661956 string function composeRoutingPath (){
1967- var base = findNoCase ( " .bx" , cgi .script_name ) ? " index.bxm" : " index.cfm" ;
1968- return variables .controller .getSetting ( " RoutingAppMapping" ) & // routing app mapping
1969- ( variables .fullRewrites ? " " : base ); // full or controller routing
1957+ return variables .controller .getSetting ( " RoutingAppMapping" );
19701958 }
19711959
19721960 /* ****************************************************************************************/
0 commit comments