Ajax form routing

Topics: Developer Forum
Feb 15 at 6:13 AM
Hi

I'm trying to work out how Ajax form routing works with N2. In short my model structure is as follows:

level1
-->level2
---->level3

And the controller has two different post methods depending on whether it is a standard HTTP POST or Ajax POST request. I'm trying to make the request go to /level1/level3 but the routing is making the request /level1/level2/level3/

The GET request page returns a level2 model with two child model properties each serving a different form one of which is the level3 object. I have tried changing the model structure so that level1 is both the parent of level2 and level3 but this has not worked.

Am I missing something obvious?

Paul