PageSourceSearch

https://www.bigtenplus.com/_nuxt/B9MbzAPp.js

js bigtenplus.com collected 2026-10-02 03:36:54 UTC 1,335 bytes, 1 lines download raw bytes

1import{j as P,k as b,aC as p,K as m,n as l,aE as R,aF as $}from"./CsY_hDvl.js";const C=P(async s=>{console.log("custom redirect middleware started");const{getRedirectMap:i,getDefaultPortal:u,getDefaultLanguage:n,setCurrentLanguageAbbreviation:t,setCurrentPortalAbbreviation:c}=b(),{getHomePage:g}=p(),{slug:e=void 0}=g,r=u.name.toLowerCase(),o=n.isoCode.toLowerCase();t(o),c(r);const d=m(i),f=Array.isArray(d)?d.find(h=>h.sourcePath===s.path):void 0;if(!f){console.log(`[debug] no custom redirect found for ${s.path}`);return}const a=m(f);return Number(a.type),a.hostnameType!=="same_as_request"?l(a.destinationPath,{external:!0}):v(a.destinationPath,o,r)?(R().value="public, max-age=3600",l(a.destinationPath,{})):(console.log(`[debug] skipped invalid same_as_request redirect for ${s.path} -> ${a.destinationPath}`),l(`/${o}-${r}/page/${e}`,{}))}),v=(s,i,u)=>{let n;try{n=new URL(s,"http://_").pathname}catch{return!1}const t=n.split("/").filter(Boolean);if(t.length===0||!t[0]?.startsWith(`${i}-${u}`))return!1;if($(t))return!0;if(!n.includes("/page"))return!1;const e=t.at(-1);if(!e||e.length===0)return!1;const{getPageBySlug:r}=p();return console.log(`[debug] getPageBySlug: ${e}`),r(e)!==null?!0:(console.warn(`[debug] Redirect destination slug "${e}" is not a valid page`),!1)};export{C as default,v as validateCustomRedirect};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.