From 4bfc4258ac376721c9c7b5532163ba06a2a57979 Mon Sep 17 00:00:00 2001 From: "Torsten Schulz (local)" Date: Wed, 3 Sep 2025 09:27:58 +0200 Subject: [PATCH] fix(blog): Anpassung der API-URL zur Ermittlung der Blog-ID MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Entfernen des Standardwerts für die API-Basis-URL, um die Konfiguration flexibler zu gestalten. - Sicherstellung, dass die URL korrekt auf die Backend-API verweist. --- frontend/src/views/blog/BlogView.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/views/blog/BlogView.vue b/frontend/src/views/blog/BlogView.vue index 8f560f2..7ef4a9b 100644 --- a/frontend/src/views/blog/BlogView.vue +++ b/frontend/src/views/blog/BlogView.vue @@ -55,7 +55,7 @@ export default { if ((!id && this.$route.params.slug) || (id && isNaN(Number(id)))) { const slug = this.$route.params.slug || this.$route.params.id; // Resolve slug to id via backend resolver but keep slug URL - const res = await fetch(`${import.meta.env.VITE_API_BASE_URL || 'http://localhost:3001'}/api/blog/blogs/slug/${encodeURIComponent(slug)}/id`); + const res = await fetch(`${import.meta.env.VITE_API_BASE_URL || ''}/api/blog/blogs/slug/${encodeURIComponent(slug)}/id`); if (res.ok) { const { id: rid } = await res.json(); this.resolvedId = rid;