CoreFiles by mySites.guru
route.js16 lines, 261 bytes, from wordpress-7.0-beta2.zip
Raw History Compare with 7.0-beta1
md5
d1abc668ae1a34c0a88c6c1412895306
sha1
fbc9ee50915e958c4cb4cf18baf7fe447ab5c74f
sha256
12529af1f593fcf7fb935d5a423d8b46216ce0a949cb2823570214547ed394f1
// routes/pattern/route.ts
import { redirect } from "@wordpress/route";
var route = {
  beforeLoad: () => {
    throw redirect({
      throw: true,
      to: "/patterns/list/$type",
      params: {
        type: "all"
      }
    });
  }
};
export {
  route
};

The same content is in 5 releases, WordPress 7.0-beta1 to 7.0-beta5. See them all, or every version of this file.