This commit is contained in:
Moon Man 2023-12-31 07:50:06 -05:00
parent 007635213a
commit 2bfcf63e4a
1 changed files with 2 additions and 0 deletions

View File

@ -60,6 +60,8 @@ app.get(Routes.activity, async (req, res) => {
const article = await getById(id);
if (article) {
console.log("Request headers for activity route:", req.headers);
if (req.accepts("html")) {
res.redirect(`/${article.slug}.html`);
}