module Roda::RodaPlugins::SinatraHelpers::RequestMethods

def redirect(path=(no_add_script_name = true; default_redirect_path), status=default_redirect_status)

and update the path.
If the absolute_redirects or :prefixed_redirects roda class options has been set, respect those
def redirect(path=(no_add_script_name = true; default_redirect_path), status=default_redirect_status)
  opts = roda_class.opts
  absolute_redirects = opts[:absolute_redirects]
  prefixed_redirects = no_add_script_name ? false : opts[:prefixed_redirects]
  path = uri(path, absolute_redirects, prefixed_redirects) if absolute_redirects || prefixed_redirects
  super(path, status)
end