Skip to content

Commit

Permalink
hide breadcrumbs when receiving a 404
Browse files Browse the repository at this point in the history
  • Loading branch information
sydseter committed Feb 12, 2025
1 parent 0a95e34 commit 87c61d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cornucopia.owasp.org/script/nonce-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ async function fetchAndStreamNotFoundPage(resp) {

const response = await fetch(url);

const html = (await response.text()).replace(/\.\//gi, '/');
const html = (await response.text()).replace(/\.\//gi, '/').replace(/id="breadcrumbs" class="/gi, "id=\"breadcrumbs\" class=\"hide ");
return new Response(html, {
status: status,
statusText: statusText,
Expand Down

0 comments on commit 87c61d2

Please sign in to comment.