ColdBox Framework Forums Notification: Post to Pretty URLs in setNextEvent

Title: Pretty URLs in setNextEvent
Thread: Pretty URLs in setNextEvent
Forum: Enhancements
Conference: ColdBox
User: cfabort I've just started using Coldbox and I'm really loving it! One thing that seemed
like a simple thing and didn't seem implemented was pretty URL support for
setNextEvent. I know this is simply aesthetic, but when all pages point to
index.cfm/some/event and suddenly, after a form submit, for example, the url is
suddenly index.cfm?event=some.otherEvent, it looks a little weird ;).

I've
looked through the forums and through the API, and I couldn't see a setting for
enabling pretty URL support for setNextEvent. So I went in
coldbox/system/controller.cfc and found the setNextEvent method. Where the
CFlocation magic happens (lines 291 to 295 on my box), I simply changed
?#EventName#=#arguments.event#

to

/#ListChangeDelims(arguments.event, '/',
'.')#

There might be a better way to do this (dynamically linked to an
application setting would be nice ;)), but since I'm new to Coldbox I wasn't
sure what was available.
http://forums.coldboxframework.com/index.cfm?event=ehMessages.dspMessages&threadid=0B86033F-FF6E-E829-9ADEE7AEB0253E1E