mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix(site/src/modules/templates/TemplateExampleCard): point Use template to builder (#27663)
## Summary
Updates the "Use template" button on `TemplateExampleCard` to link to
the template builder instead of the legacy create flow.
- `/templates/new?exampleId=${example.id}` →
`/templates/new/builder?base=${example.id}`
This affects everywhere the card is rendered: the Templates page empty
state and the Starter Templates gallery page.
## Notes
The "View all starter templates" button in the empty state keeps its
existing `templateBuilderEnabled` conditional (unchanged).
---
_This PR was generated by Coder Agents on behalf of @jeremyruppel._
This commit is contained in:
@@ -64,7 +64,7 @@ export const TemplateExampleCard: FC<TemplateExampleCardProps> = ({
|
||||
|
||||
<div className="mt-auto flex flex-col items-center gap-3 pt-6">
|
||||
<Button asChild className="w-full">
|
||||
<RouterLink to={`/templates/new?exampleId=${example.id}`}>
|
||||
<RouterLink to={`/templates/new/builder?base=${example.id}`}>
|
||||
Use template
|
||||
</RouterLink>
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user