Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
fix: backend API base URL builder
Browse files Browse the repository at this point in the history
  • Loading branch information
johannschopplich committed Nov 21, 2022
1 parent 1cbb2ea commit 90c139f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/composables/useKirbyApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ const cache = new Map();
function getApiUrl(path) {
const { isMultilang, languageCode } = useLanguages();
return joinURL(
// Add language path in multi-language setup
isMultilang ? `/${languageCode}` : "",
// Use language path in multi-language setup as base
isMultilang ? `/${languageCode}` : "/",
// Add the API path
import.meta.env.VITE_BACKEND_API_SLUG,
// Add the file path
Expand Down

0 comments on commit 90c139f

Please sign in to comment.