src/tools/error_index_generator/redirect.js JAVASCRIPT 13 lines View on github.com → Search inside
1(function() {2    if (window.location.hash) {3        let code = window.location.hash.replace(/^#/, '');4        // We have to make sure this pattern matches to avoid inadvertently creating an5        // open redirect.6        if (/^E[0-9]+$/.test(code)) {7            window.location.replace('./error_codes/' + code + '.html');8            return;9        }10    }11    window.location.replace('./error_codes/error-index.html');12})()

Findings

✓ No findings reported for this file.

Get this view in your editor

Same data, no extra tab — call code_get_file + code_get_findings over MCP from Claude/Cursor/Copilot.