From f354795e4613c7587f04ca4e5d80ecc2f393ca3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=E1=BB=91ng=20Th=C3=A0nh=20=C4=90=E1=BA=A1t?= <84076965+tongthanhdat009@users.noreply.github.com> Date: Sun, 12 Apr 2026 23:32:07 +0700 Subject: [PATCH] fix: floating contact button cms --- controllers/homeController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/homeController.js b/controllers/homeController.js index 6f9ccfd..f9f0ba6 100644 --- a/controllers/homeController.js +++ b/controllers/homeController.js @@ -287,7 +287,7 @@ exports.index = async (req, res) => { data.floatingContact = normalizeFloatingContactData(data.floatingContact); const frontendUrl = process.env.FRONTEND_URL || "http://localhost:3000"; - const backendUrl = `${req.protocol}://${req.get("host")}`; + const backendUrl = process.env.BACKEND_URL || `${req.protocol}://${req.get("host")}`; // Lấy tất cả blog để chọn trong CMS const allBlogs = await Blog.find({ status: "published" })