[coldbox-3.8.1] Handler default event not firing?

I have a handler, we’ll call it “samples”. I have SES turned on, which works fine (except for adding the /index.cfm/, but I’ll handle that later).

When I go to Website Hosting - Mysite.com, the URL becomes http://mysite.com/index.cfm/samples/samples .

Why is it is not /samples/index to fire the index() event by default?

Pretty sure an older version of Coldbox I have on another site doesn’t have this issue. I am on the latest Railo as of this writing, 4.1.2.005

Thoughts?

  • Will B.

When you say the URL “becomes”, is something redirecting the request to a second page? Even if you have SES enabled, when you visit a URL using the “event=” bit in the query string it should just run normally.

I just tried it in my test environment and it works correctly on the latest version of ColdBox. Check and see if you have a redirect somewhere in your code that is building the link incorrectly.

There was a recent change to delayed the addition of the “index” bit until a little later in the request. The SES interceptor used to add it, but that broke implicit view execution, so now the Handler Service is the only place the “index” check happens.

https://ortussolutions.atlassian.net/browse/COLDBOX-245

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com