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;