Skip to content

Commit

Permalink
Merge pull request #812 from WildMeOrg/dev10.4_patch_public_url
Browse files Browse the repository at this point in the history
update update_url to suit different path
  • Loading branch information
TanyaStere42 authored Oct 1, 2024
2 parents 76fd6b4 + ecbee87 commit 650e8f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ function App() {
setFilters({});
};

const publicUrl = process.env.PUBLIC_URL ? new URL(process.env.PUBLIC_URL).pathname : "/";
const publicUrl = process.env.PUBLIC_URL
? (process.env.PUBLIC_URL.startsWith('http') ? new URL(process.env.PUBLIC_URL).pathname : process.env.PUBLIC_URL)
: "/";

return (
<QueryClientProvider client={queryClient}>
Expand Down

0 comments on commit 650e8f2

Please sign in to comment.