Added swagger and elmah return-to-front-end button

This commit is contained in:
2026-01-01 17:38:48 +01:00
parent 977a8f1637
commit 8cbc77eb1d
6 changed files with 216 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
document.addEventListener('DOMContentLoaded', async () => {
const url = new URL(window.location.href);
const btn = document.createElement("a");
btn.href = url.searchParams.get('ReturnUrl') ?? "/";
btn.innerText = "⎋";
btn.setAttribute("aria-label", "Return to Front-End");
btn.className = "elmah-return-btn";
document.body.appendChild(btn);
});