Skip to content

Commit be9769b

Browse files
committed
More fixes for ColdBox 7 / 8 router in tests
1 parent 07f6f76 commit be9769b

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

box.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
},
2626
"devDependencies":{
2727
"testbox":"^6.0.0",
28-
"coldbox":"^8"
28+
"coldbox":"^8.0.0"
2929
},
3030
"installPaths":{
3131
"testbox":"testbox/",

tests/resources/app/config/Router.cfc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
component {
22

33
function configure() {
4-
setMultiDomainDiscovery( false );
5-
setBaseUrl( composeRoutingUrl() & "index.cfm/" );
4+
if ( listFirst( getController().getColdBoxSetting( "version" ), "." ) >= 8 ) {
5+
setMultiDomainDiscovery( false );
6+
setBaseUrl( composeRoutingUrl() & "index.cfm/" );
7+
} else {
8+
setFullRewrites( false );
9+
}
10+
611
// Conventions based routing
712
route( ":handler/:action?" ).end();
813
}

0 commit comments

Comments
 (0)