Modify RedirectView to allow 301 Permanent Redirects [SPR-5468] #10141
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
Scott Murphy opened SPR-5468 and commented
There are numerous occasions where I need to use a redirect view to permanently redirect traffic based on an old url. For SEO purposes, a permanent redirect is preferred over a temporary one for transferring pagerank to the new url. (See: http://www.mcanerin.com/EN/articles/301-redirect-scripting.asp)
Please provide a way to specify the type of redirection (permanent vs temporary) via constructor argument . Temporary should still be used for form submissions, while permanent can be used for SEO purposes.
The need for this feature will be greater with the introduction of REST-style urls in 3.0.
Affects: 3.0 M1
Issue Links:
@ResponseStatus
annotation is ignored in an@Controller
redirect (RedirectView)Referenced from: commits 5b12503
1 votes, 1 watchers
The text was updated successfully, but these errors were encountered: