diff --git a/frontend/src/components/pages/Client.vue b/frontend/src/components/pages/Client.vue index a53fb20..82c7765 100644 --- a/frontend/src/components/pages/Client.vue +++ b/frontend/src/components/pages/Client.vue @@ -297,8 +297,9 @@ const handleSubmit = async () => { const createdClient = await Api.createClient(client.value); console.log("Created client:", createdClient); notificationStore.addSuccess("Client created successfully!"); + stripped_name = createdClient.customerName.split("-#-")[0].trim(); // Navigate to the created client - router.push('/client?client=' + encodeURIComponent(createdClient.name)); + router.push('/client?client=' + encodeURIComponent(stripped_name)); } else { // TODO: Implement save logic notificationStore.addSuccess("Changes saved successfully!");