Can't access the Directory from an IVR submenu Possible Bug?

Hello,

There seems to a bug when I try and access the Directory from a submenu in the IVR:

When I select the menu, The GotoIF below fails and drops me right back into the IVR. When I do it on the Main IVR menu, it works fine.

CODE from: extensions_addtional.conf

exten => 1,1,GotoIf($[“x${IVR_CONTEXT_${CONTEXT}}” = “x”]?directory,2,1:${IVR_CONTEXT_${CONTEXT}},return,1)

LOG:

– Executing [1@ivr-2:1] GotoIf(“SIP/1490-00000035”, “0?directory,2,1:ivr-1,return,1”) in new stack
– Goto (ivr-1,return,1)

Also,

Shouldn’t the directory be one of the Feature Codes? How can I work around this issue?

I am running
FreePBX 2.10.1.9
IVR 2.10.0.9
Directory 2.10.0.11

It looks like the bug only happens when you check the “Return” box in the IVR.