lib/responses.js
function forceEditableInstance(code = 303) {
  return (req, res) => {
    res.redirect(code, `${res.locals.site.protocol}://${req.uri.replace('@published', '')}`);
  };
}
function forceEditableInstance(code = 303) {
  return (req, res) => {
    res.redirect(code, `${res.locals.site.protocol}://${req.uri.replace('@published', '')}`);
  };
}
function forceEditableInstance ( code = 303 ) { return ( req , res ) => { res . redirect ( code , ` ${ res . locals . site . protocol } ${ req . uri . replace ( '@published' , '' ) } ` ) ; } ; }
Forces a redirect back to the non-published
version of a uri

@param {Number} code
@returns {Function}
Forces a redirect back to the non - published version of a uri