• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
routes not recognized after Post

#5
(03-25-2018, 03:01 AM)LVD Wrote: After some further researche I found that only the "post" and "add" routes are checked.  so I switched all the verb defined routes (get-post) to regular "add" definitions and it works.  Im not sure if this is supposed to work like this or if this is a bug.  Why the possibility to use verbs in route definitions if they cant be resolved after a post? 

in any case, my problem is solved like this,

thx fr the input.

I remember this happens with a test project here. In my case, there were two similar routes /admin /blog/posts/(:num) and /blog/posts/(:num).

When I updated a post on a POST only route (/admin/blog/posts/(:num)/update), I redirected it back to the edit page (/admin/blog/posts/(:num)). But strangely, it was sometimes redirected to the public post page. I figured there must be some conflict over the similarity in the path of the routes, but, by the way, it must be because of HTTP methods then as @kilishan said:

(03-25-2018, 07:54 PM)kilishan Wrote: @LVD - Are you using the latest version of the code? At one time it would only save the routes for the current request method (POST in your case) and ignore the others. This was attempting to optimize the process a little, but turned out to be ill-advised as you can imagine. Smile That should be fixed in newer versions, though.
Reply


Messages In This Thread
routes not recognized after Post - by LVD - 03-23-2018, 02:42 AM
RE: routes not recognized after Post - by scalla - 03-24-2018, 12:26 AM
RE: routes not recognized after Post - by LVD - 03-25-2018, 03:01 AM
RE: routes not recognized after Post - by natanfelles - 03-27-2018, 10:16 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.