Skip to content

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.

fix: Improve made with webstudio badge tooltip (#5266)

Oleg Isonen136d7c19d9fc
diff --git a/apps/builder/app/builder/features/topbar/publish.tsx b/apps/builder/app/builder/features/topbar/publish.tsx
index 5693bc64af..4348a6fc38 100644
--- a/apps/builder/app/builder/features/topbar/publish.tsx
+++ b/apps/builder/app/builder/features/topbar/publish.tsx
@@ -273,7 +273,7 @@ const $usedProFeatures = computed(
const badgeFeature = 'No "Built with Webstudio" badge';
// Badge should be rendered on free sites on every page.
features.set(badgeFeature, {
- info: "Adding the badge to your homepage helps us offer a free version of the service. Please open the Components panel by clicking the “+” icon on the left, and add the “Built with Webstudio” component to your page. Feel free to adjust the badge’s styles to match your design.",
+ info: "Adding the badge to your homepage helps us offer a free version of the service. Please open the Components panel by clicking the “+” icon on the left, and add the “Built with Webstudio” component to your page. Feel free to adjust the badge's style to match your design - after all, it's just a link, and you can place it wherever you like.",
});
// We want to check the badge only on the home page
const homePageInstanceIds = findTreeInstanceIds(
@@ -288,7 +288,8 @@ const $usedProFeatures = computed(
for (const prop of props ?? []) {
if (
prop.name === "href" &&
- prop.value === "https://webstudio.is/?via=badge"
+ typeof prop.value === "string" &&
+ prop.value.includes("https://webstudio.is")
) {
features.delete(badgeFeature);
}