Announcement Announcement Module
Collapse
No announcement yet.
Proper way to redirect to a URL with an id in the path? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Proper way to redirect to a URL with an id in the path?

    I remember reading something about not putting Id's in the path of a redirect String in Spring like the following:
    Code:
    return "redirect:/person/123789";
    The problem was something about Spring caching each page you redirect to. So you'll end up caching tons of the same page template with the above. Instead we're supposed to redirect to /person and then I think add the 123789 into the model object.

    Is this really true? If so, how exactly are we supposed to add the 123789?
Working...
X