changing URl parameter values
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.
- still in the same page.
- Your URL should be defined that way that it always points to a resource.
- 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).
- If a resource can be found - let the resource handle the wrong URL.
- If the resource is not allowed to be accessed by the user -> login screen.
- If no resource -> error.
- no further case specified.
精彩评论