relocate

I’m running 4.3 (yeah I’ll refactor at some point) and trying to use relocate.

reading this
https://coldbox.ortusbooks.com/v/v4.x/the-basics/event-handlers/relocating

I’m doing a simple test

function relocateTest()
{
relocate(url=“http://www.google.com”);
}

I get an error – Variable RELOCATE is undefined.

any ideas?

Thanks.

JP

That’s because relocate is what we renamed setNextEvent() to in ColdBox 5 :slight_smile: So you can either upgrade (recommended) or use setNextEvent(). I think the arguments are identical between the two.