fix(tenancy): use absolute URL in team invitation email link
Some checks failed
Some checks failed
Email clients need absolute URLs to make links clickable. The acceptance_link was a relative path (/store/invitation/accept?token=...) which rendered as plain text. Now prepends the platform domain with the correct protocol. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -223,6 +223,30 @@
|
||||
};
|
||||
});
|
||||
|
||||
// Capture uncaught errors and unhandled rejections
|
||||
window.addEventListener('error', function (e) {
|
||||
var msg = e.message || 'Unknown error';
|
||||
if (e.filename) msg += ' at ' + e.filename.split('/').pop() + ':' + e.lineno;
|
||||
consoleLogs.push({
|
||||
timestamp: Date.now(),
|
||||
level: 'error',
|
||||
args: [msg],
|
||||
});
|
||||
if (consoleLogs.length > MAX_CONSOLE_LOGS) consoleLogs.shift();
|
||||
refreshIfActive('console');
|
||||
});
|
||||
|
||||
window.addEventListener('unhandledrejection', function (e) {
|
||||
var msg = e.reason ? (e.reason.message || String(e.reason)) : 'Unhandled promise rejection';
|
||||
consoleLogs.push({
|
||||
timestamp: Date.now(),
|
||||
level: 'error',
|
||||
args: [msg],
|
||||
});
|
||||
if (consoleLogs.length > MAX_CONSOLE_LOGS) consoleLogs.shift();
|
||||
refreshIfActive('console');
|
||||
});
|
||||
|
||||
// ── Refresh helper ──
|
||||
function refreshIfActive(tab) {
|
||||
if (isExpanded && activeTab === tab && contentEl) {
|
||||
|
||||
Reference in New Issue
Block a user