fix: force outgoing page on direct access to /ap handler

This commit is contained in:
Julian Lam
2025-10-01 11:53:57 -04:00
parent 4776d01281
commit 9cee799937

View File

@@ -48,6 +48,11 @@ Controller.fetch = async (req, res, next) => {
}
}
// Force outgoing links page on direct access
if (!res.locals.isAPI) {
url = new URL(`outgoing?url=${encodeURIComponent(url.href)}`, nconf.get('url'));
}
helpers.redirect(res, url.href, false);
} catch (e) {
if (!url || !url.href) {