开发者

changing URl parameter values

开发者 https://www.devze.com 2023-03-24 16:16 出处:网络
What is the best practise to do when user change the values of URL parameter? Redirect to login page. sho开发者_如何学编程w error page with page is no exist message.

What is the best practise to do when user change the values of URL parameter?


  1. Your URL should be defined that way that it always points to a resource.
  2. There might be additional parts of the URL that are used to refine the resource (such as paging index or something else necessary only for that resource).
  3. If a resource can be found - let the resource handle the wrong URL.
  4. If the resource is not allowed to be accessed by the user -> login screen.
  5. If no resource -> error.
  6. no further case specified.
0

精彩评论

暂无评论...
验证码 换一张
取 消