Skip to content

Commit 3a775e0

Browse files
fix: omit trailing / for dashboard and agents URLS (#50)
## Why? Clear and short explanation here. ## How? - Done A (replace with a breakdown of the steps) - Done B - Done C ## Tickets? - [Ticket 1](the-ticket-url-here) - [Ticket 2](the-ticket-url-here) - [Ticket 3](the-ticket-url-here) ## Contribution checklist? - [ ] The commit messages are detailed - [ ] The `build` command runs locally - [ ] Assets or static content are linked and stored in the project - [ ] You've reviewed spelling using a grammar checker - [ ] For documentation, guides or references, you've tested the commands and steps - [ ] You've done enough research before writing ## Security checklist? - [ ] Sensitive data has been identified and is being protected properly - [ ] Injection has been prevented (parameterized queries, no eval or system calls) - [ ] The Components are escaping output (to prevent XSS) ## References? Optionally, provide references such as links ## Preview? Optionally, provide the preview url here
1 parent b628971 commit 3a775e0

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.changeset/eleven-adults-trade.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@fleek-platform/dashboard": patch
3+
---
4+
5+
Fix urls

.tests/hash

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[TEST_RUN] 3ba7ff0fad89127eb96a5991f49cf478f6919a58
1+
[TEST_RUN] 33a3cdcce970230d9043cbd7018981736982dc60

src/utils/url.ts

+2
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ export const getDashboardUrl = () => {
9393
const dashboardUrl = joinUrl(
9494
getWebsiteUrl(),
9595
getDefined('NEXT_PUBLIC_DASHBOARD_BASE_PATH'),
96+
true,
9697
);
9798
if (!isServerSide() && window.location.hostname.startsWith('hosting.')) {
9899
return 'https://hosting.fleek.xyz';
@@ -104,6 +105,7 @@ export const getAgentsUrl = () => {
104105
const agentsUrl = joinUrl(
105106
getWebsiteUrl(),
106107
getDefined('NEXT_PUBLIC_AGENTS_AI_PATH'),
108+
true,
107109
);
108110
if (!isServerSide() && window.location.hostname.startsWith('hosting.')) {
109111
return 'https://eliza.fleek.xyz';

0 commit comments

Comments
 (0)