PageSourceSearch

https://www.socialtechno.it/assets/RedirectToLocale-DHFht9Gj.js

js socialtechno.it collected 2026-10-02 10:16:31 UTC 791 bytes, 1 lines download raw bytes

1import{g as e,u as t}from"./jsx-runtime-BVv0dmrQ.js";import{a as n,o as r}from"./index-DPIjQWDf.js";var i=e(t(),1),a=/^\/(it|en)(?=\/|$)/;function o(e){let t=e.match(a)?.[1];if(!t)return null;let n=e;for(;a.test(n);)n=n.replace(a,``)||`/`;return`/${t}${n===`/`?``:n}`}var s=()=>{let e=n(),t=r();return(0,i.useEffect)(()=>{let n=o(e.pathname);if(n){n!==e.pathname&&t(`${n}${e.search}${e.hash}`,{replace:!0});return}let r=localStorage.getItem(`preferred_lang`),i=(Array.isArray(navigator.languages)&&navigator.languages.length>0?[...navigator.languages]:[navigator.language||``]).some(e=>e?.toLowerCase().startsWith(`it`)),a=r===`it`||r===`en`?r:i?`it`:`en`,s=e.pathname===`/`?``:e.pathname;t(`/${a}${s}${e.search}${e.hash}`,{replace:!0})},[e.pathname,e.search,e.hash,t]),null};export{s as t};

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.