spring-framework / org.springframework.web.servlet.config.annotation / RedirectViewControllerRegistration / setContextRelative

setContextRelative

open fun setContextRelative(contextRelative: Boolean): RedirectViewControllerRegistration

Whether to interpret a given redirect URL that starts with a slash ("/") as relative to the current ServletContext, i.e. as relative to the web application root.

Default is true.