Skip to content

Commit 1400d7c

Browse files
authored
fix: correctly link agent name in app urls (#3672)
1 parent ca3c049 commit 1400d7c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

site/src/components/AppLink/AppLink.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,20 @@ export const Language = {
1313
export interface AppLinkProps {
1414
userName: TypesGen.User["username"]
1515
workspaceName: TypesGen.Workspace["name"]
16+
agentName: TypesGen.WorkspaceAgent["name"]
1617
appName: TypesGen.WorkspaceApp["name"]
1718
appIcon?: TypesGen.WorkspaceApp["icon"]
1819
}
1920

2021
export const AppLink: FC<PropsWithChildren<AppLinkProps>> = ({
2122
userName,
2223
workspaceName,
24+
agentName,
2325
appName,
2426
appIcon,
2527
}) => {
2628
const styles = useStyles()
27-
const href = `/@${userName}/${workspaceName}/apps/${appName}`
29+
const href = `/@${userName}/${workspaceName}.${agentName}/apps/${appName}`
2830

2931
return (
3032
<Link

site/src/components/Resources/Resources.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ export const Resources: FC<React.PropsWithChildren<ResourcesProps>> = ({
131131
appName={app.name}
132132
userName={workspace.owner_name}
133133
workspaceName={workspace.name}
134+
agentName={agent.name}
134135
/>
135136
))}
136137
</div>

0 commit comments

Comments
 (0)