Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
fix: Domain name and the link is not updated after renaming in publish dialog (#3594)
Ivan Starkov58119c75ba1f
diff --git a/apps/builder/app/builder/features/topbar/publish.tsx b/apps/builder/app/builder/features/topbar/publish.tsxindex 5d2840baea..1797a00797 100644--- a/apps/builder/app/builder/features/topbar/publish.tsx+++ b/apps/builder/app/builder/features/topbar/publish.tsx@@ -32,7 +32,7 @@ import {$userPlanFeatures,} from "../../shared/nano-states";import { validateProjectDomain, type Project } from "@webstudio-is/project";-import { $authPermit, $publishedOrigin } from "~/shared/nano-states";+import { $authPermit, $project, $publishedOrigin } from "~/shared/nano-states";import {Domains,getPublishStatusAndText,@@ -99,6 +99,15 @@ const ChangeProjectDomain = ({return;}+ const currenProject = $project.get();++ if (currenProject?.id === projectData.project.id) {+ $project.set({+ ...currenProject,+ domain: projectData.project.domain,+ });+ }+setDomain(projectData.project.domain);}),[projectLoad, project.id]