- keenskyの2026-08-1327996

详情如图,把官网的en 改成cn或者zh,就会触发无限递归
难不成这官网也是deepseek写的?
这世界真的是个草台班子
主楼 - x-shuffle2026-08-1332772
- yuefeng_yang2026-08-1320004
应该是vibe coding的吧,我之前也是出现过同样的bug
- daoyu12026-08-1331993
真的哎,刚刚试了一下不停的叠加en
- zc_Y2026-08-135000
- ktze2026-08-139366
- HLH20772026-08-1316728
- 又取十一心2026-08-1362640
- LLMeme2026-08-1318494
问题出在官网的 js:```
<script>(function () {
// Bare paths are static zh HTML; user-specific locale preference is only available in the browser.
var normalized = location.pathname.replace(/\/$/, '') || '/'
var cookieMatch = document.cookie.match(/(?:^|;\s*)NEXT_LOCALE=(zh|en)(?:;|$)/)
var language = String(navigator.language || (navigator.languages && navigator.languages[0]) || '').toLowerCase()// 1. Pick the desired locale from cookie first, then browser language.
var targetLocale = cookieMatch ? cookieMatch[1] : (/^(zh|zh-cn|zh-hans|zh-hans-cn)$/.test(language) ? 'zh' : 'en')
// 2. This script is only injected on zh pages, so only en requires a redirect.
if (targetLocale !== 'en') { return }document.documentElement.style.visibility = 'hidden'
var target = normalized === '/' ? '/en/' : '/en' + normalized + '/'
location.replace(target + location.search + location.hash)
})();</script>
```DS 自己就能分析出问题:
- yooinsung2026-08-1335319
那之前网上传的ds面试那么难到底在面试什么呀
- 里海2026-08-1336613
面试不都是在面八股,刷题背题 ^-^
- 丁丁2026-08-1438050
还真的是,这个网站好潦草的感觉啊
- ddxyl2026-08-1410662
这是。。。deepsuck。。?无限递归吞噬 ^-^
- jasonkayzk2026-08-1449934
deepseek,深度求索,就问你深不深吧!





