Jump to content

Routing /url segments do not work


helmut2509
 Share

Recommended Posts

Hello,

I have a form for displaying, editing and deleting data of contact persons.

The parameters are parts of the url (url segments).

As url segments for the template I have entered:

new
edit
delete
regex:^edit/[0-9]+

"new" and "edit" work fine, but when I use "delete" I always get an 404 error.

Strange thing is that if the url only contains  "delete" the script is properly invoked (but cannot process properly without id).

However, if the url contains "/delete/123/", then I always get the 404 error.

I am really stuck :-(

 

any suggestions?

 

Link to comment
Share on other sites

9 minutes ago, DaveP said:

This may be a bit too obvious, but don't you need a regex:^delete/[0-9]+ entry as well?

Thanks Dave, you are right.

when the temperature goes over 30 degrees Celsius (here in Germany), such things can easily happen......

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...