Yes, I’m pretty good with CB but this is my first time trying to use custom routing.
I also used addCourse() just to see if the reinit would throw an error and it did, so I know it’s getting reinited.
And I added my route right under this line: addRoute(pattern=":handler/:action?");
Was also having a routing problem. I did what Clint did, “put it right under” the existing line. Did you actually mean “You are declaring a GENERIC route BEFORE a specific route” below? I put my specific route for addRoute(pattern=‘events/ThankYou/:eventregistrationkey?’); ABOVE the line addRoute(pattern=":handler/:action?");
…and it worked. Just want to clarify what you said, there, Luis.
Okay, I should correct myself. The “…and it worked” was wrong. My OTHER pages work, like:
/index.cfm/main/cruiseNight
index.cfm/main/goExclusive
They get to the right main.CruiseNight handler functions and main.goExclusive. However, this pattern (first in routes file) isn’t working:
addRoute(pattern=‘events/ThankYou/:eventregistrationkey?’);