Add document viewer with proper 404 handling for trust center
Move document download/view to a dedicated viewer page with PDF preview, access request flow, and a proper 404 error boundary when documents are not found. The backend now returns NOT_FOUND instead of INTERNAL for missing documents and reports. Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
@@ -3,6 +3,16 @@
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<script>
|
||||
(function () {
|
||||
var m = location.pathname.match(/^\/trust\/[^/]+/);
|
||||
if (m) {
|
||||
var b = document.createElement("base");
|
||||
b.href = m[0] + "/";
|
||||
document.head.appendChild(b);
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
|
||||
<!-- <link rel="apple-touch-icon-precomposed" sizes="57x57" href="/favicons/apple-touch-icon-57x57.png" />
|
||||
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="/favicons/apple-touch-icon-114x114.png" />
|
||||
|
||||
Reference in New Issue
Block a user