@@ -21,7 +21,10 @@ templ Dropdown(envs []*types.Environment, selectedEnv int64) {
2121 <div class =" min-w-full table" >
2222 for _ , env := range envs {
2323 <div class =" relative flex select-none items-center rounded-sm text-xs outline-none hover:bg-overlay-hover hover:text-strong data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 cursor-pointer w-full" >
24- <a class =" w-full flex items-center justify-between mx-2 my-1.5" href ={ routes.EnvironmentUID (env.UID ) }>
24+ <a
25+ class =" w-full flex items-center justify-between mx-2 my-1.5"
26+ href ={ routes.EnvironmentCtxUID (ctx, env.UID ) }
27+ >
2528 <span class =" truncate max-w-60" >{ env.Name }</span >
2629 if env.UID == selectedEnv {
2730 <svg xmlns =" http://www.w3.org/2000/svg" width =" 16" height =" 16" viewBox =" 0 0 24 24" fill =" none" stroke =" currentColor" stroke-width =" 2" stroke-linecap =" round" stroke-linejoin =" round" ><path d =" M20 6 9 17l-5-5" ></path ></svg >
@@ -45,7 +48,7 @@ templ Dropdown(envs []*types.Environment, selectedEnv int64) {
4548 >
4649 <a
4750 class =" w-full flex items-center gap-2"
48- href ={ routes.ProjectEnvironment }
51+ href ={ routes.ProjectCtx (ctx) + " / " + routes. ProjectEnvironment }
4952 >
5053 <p >Manage Environments</p >
5154 </a >
@@ -64,7 +67,7 @@ templ Dropdown(envs []*types.Environment, selectedEnv int64) {
6467 >
6568 <a
6669 class =" w-full flex items-center gap-2"
67- href ={ routes.EnvironmentNew ( ) }
70+ href ={ routes.EnvironmentNewCtx (ctx ) }
6871 >
6972 <svg xmlns =" http://www.w3.org/2000/svg" width =" 14" height =" 14" viewBox =" 0 0 24 24" fill =" none" stroke =" currentColor" stroke-width =" 1.5" stroke-linecap =" round" stroke-linejoin =" round" class =" lucide lucide-plus" ><path d =" M5 12h14" ></path ><path d =" M12 5v14" ></path ></svg >
7073 <p >New Environment</p >
0 commit comments