Skip to content

Commit a73a618

Browse files
committed
final link changes to ensure website linking on both prod and local dev
1 parent 2ca399b commit a73a618

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

client/src/pages/Home.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,7 @@ function DemosSection() {
220220
</CardDescription>
221221
</CardHeader>
222222
<CardContent>
223-
<a href={`${window.location.origin}${appConfig.deployment.basePath}/ar-demo.html`} target="_blank" rel="noopener noreferrer">
224-
<Button className="w-full gap-2">
223+
<a href={`${window.location.origin}${appConfig.deployment.basePath === '/' ? '' : appConfig.deployment.basePath}/ar-demo.html`} target="_blank" rel="noopener noreferrer"> <Button className="w-full gap-2">
225224
Launch Demo
226225
<ExternalLink className="w-4 h-4" />
227226
</Button>

0 commit comments

Comments
 (0)