views:

31

answers:

1

My routes work fine apart from when I am at an action that requires a parameter. For example, these work ok:

/news
/news/admin
/news/admin/add

But this doesn't:

/news/admin/edit/1

But only routes using the 'default' route render incorrectly (they render as ../../module/controller), all other routes render correctly (/module/conntroller)

Any ideas why, or how to fix it?

A: 

If you aren't using custom routes, your route has to look like this:

/news/admin/edit/id/1

Where there always have to be a pair of /param/value.

DASPRiD
Sorry, should have mentioned that I have a custom route defined
Ashley