Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/docker_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: sentry
SENTRY_ORG: escolasoft
SENTRY_PROJECT: wellms-front
SENTRY_URL: https://escolasoft.sentry.io
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker_build_develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: sentry
SENTRY_ORG: escolasoft
SENTRY_PROJECT: wellms-front
SENTRY_URL: https://escolasoft.sentry.io
with:
Expand Down
14 changes: 13 additions & 1 deletion src/components/_App/Navbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,19 @@ const Navbar = () => {

// 1. Extract pathname: "/wellms/avatars/testimg.jpg"
if (!url) return null;
let relativePath = new URL(url).pathname;
let relativePath: string;
try {
// If url is absolute (starts with http(s) or protocol-relative //) use URL to extract pathname,
// otherwise treat it as already a relative path.
if (/^(https?:)?\/\//.test(url)) {
relativePath = new URL(url).pathname;
} else {
relativePath = url;
}
} catch (e) {
// On any parsing error, fall back to the original value
relativePath = url;
}

// 2. Remove the bucket prefix
const bucketPrefix = `/${bucket}`; // "/wellms"
Expand Down
2 changes: 1 addition & 1 deletion vite.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default defineConfig(({ mode }) => {
process.env.SENTRY_AUTH_TOKEN
? sentryVitePlugin({
authToken: process.env.SENTRY_AUTH_TOKEN,
org: "sentry",
org: "escolasoft",
project: "wellms-front",
url: "https://escolasoft.sentry.io",
})
Expand Down
Loading