2
0

anpassen der URL

This commit is contained in:
2024-09-12 14:02:36 +02:00
parent 09282ae82e
commit 4fa56efd41
6 changed files with 35 additions and 35 deletions

View File

@ -53,9 +53,9 @@ export const SignInPage = ({ type }: Props) => {
<T <T
keyName="auth.register.aggreeToTerms" keyName="auth.register.aggreeToTerms"
params={{ params={{
terms: <TextLink href={'https://typebot.io/terms-of-service'} />, terms: <TextLink href={'https://bls.media/agb'} />,
privacy: ( privacy: (
<TextLink href={'https://typebot.io/privacy-policies'} /> <TextLink href={'https://bls.media/datenschutz'} />
), ),
}} }}
/> />

View File

@ -148,7 +148,7 @@ export const ChangePlanForm = ({
<Text color="gray.500"> <Text color="gray.500">
{t('billing.customLimit.preLink')}{' '} {t('billing.customLimit.preLink')}{' '}
<TextLink href={'https://typebot.io/enterprise-lead-form'} isExternal> <TextLink href={'https://bls.media/kontakt'} isExternal>
{t('billing.customLimit.link')} {t('billing.customLimit.link')}
</TextLink> </TextLink>
</Text> </Text>

View File

@ -49,7 +49,7 @@ export const BoardMenuButton = (props: StackProps) => {
} }
const redirectToDocumentation = () => const redirectToDocumentation = () =>
window.open('https://docs.typebot.io/editor/graph', '_blank') window.open('https://bls.media/kontakt', '_blank')
return ( return (
<HStack rounded="md" spacing="4" {...props}> <HStack rounded="md" spacing="4" {...props}>

View File

@ -49,7 +49,7 @@ export const TypebotHeader = () => {
const handleHelpClick = () => { const handleHelpClick = () => {
isCloudProdInstance() && workspace?.plan && workspace.plan !== Plan.FREE isCloudProdInstance() && workspace?.plan && workspace.plan !== Plan.FREE
? onOpen() ? onOpen()
: window.open('https://docs.typebot.io/guides/how-to-get-help', '_blank') : window.open('https://bls.media/kontakt', '_blank')
} }
if (currentUserMode === 'guest') return <GuestTypebotHeader /> if (currentUserMode === 'guest') return <GuestTypebotHeader />

View File

@ -10,63 +10,63 @@ export const getHelpDocUrl = (
): string | undefined => { ): string | undefined => {
switch (blockType) { switch (blockType) {
case LogicBlockType.TYPEBOT_LINK: case LogicBlockType.TYPEBOT_LINK:
return 'https://docs.typebot.io/editor/blocks/logic/typebot-link' return 'https://bls.media/bot?typebot-link'
case LogicBlockType.SET_VARIABLE: case LogicBlockType.SET_VARIABLE:
return 'https://docs.typebot.io/editor/blocks/logic/set-variable' return 'https://bls.media/bot?set-variable'
case LogicBlockType.REDIRECT: case LogicBlockType.REDIRECT:
return 'https://docs.typebot.io/editor/blocks/logic/redirect' return 'https://bls.media/bot?redirect'
case LogicBlockType.SCRIPT: case LogicBlockType.SCRIPT:
return 'https://docs.typebot.io/editor/blocks/logic/script' return 'https://bls.media/bot?script'
case LogicBlockType.WAIT: case LogicBlockType.WAIT:
return 'https://docs.typebot.io/editor/blocks/logic/wait' return 'https://bls.media/bot?wait'
case InputBlockType.TEXT: case InputBlockType.TEXT:
return 'https://docs.typebot.io/editor/blocks/inputs/text' return 'https://bls.media/bot?text'
case InputBlockType.NUMBER: case InputBlockType.NUMBER:
return 'https://docs.typebot.io/editor/blocks/inputs/number' return 'https://bls.media/bot?number'
case InputBlockType.EMAIL: case InputBlockType.EMAIL:
return 'https://docs.typebot.io/editor/blocks/inputs/email' return 'https://bls.media/bot?email'
case InputBlockType.URL: case InputBlockType.URL:
return 'https://docs.typebot.io/editor/blocks/inputs/website' return 'https://bls.media/bot?website'
case InputBlockType.DATE: case InputBlockType.DATE:
return 'https://docs.typebot.io/editor/blocks/inputs/date' return 'https://bls.media/bot?date'
case InputBlockType.PHONE: case InputBlockType.PHONE:
return 'https://docs.typebot.io/editor/blocks/inputs/phone-number' return 'https://bls.media/bot?phone-number'
case InputBlockType.CHOICE: case InputBlockType.CHOICE:
return 'https://docs.typebot.io/editor/blocks/inputs/buttons' return 'https://bls.media/bot?buttons'
case InputBlockType.PAYMENT: case InputBlockType.PAYMENT:
return 'https://docs.typebot.io/editor/blocks/inputs/payment' return 'https://bls.media/bot?payment'
case InputBlockType.RATING: case InputBlockType.RATING:
return 'https://docs.typebot.io/editor/blocks/inputs/rating' return 'https://bls.media/bot?rating'
case InputBlockType.FILE: case InputBlockType.FILE:
return 'https://docs.typebot.io/editor/blocks/inputs/file-upload' return 'https://bls.media/bot?file-upload'
case IntegrationBlockType.EMAIL: case IntegrationBlockType.EMAIL:
return 'https://docs.typebot.io/editor/blocks/integrations/email' return 'https://bls.media/bot?email'
case IntegrationBlockType.CHATWOOT: case IntegrationBlockType.CHATWOOT:
return 'https://docs.typebot.io/editor/blocks/integrations/chatwoot' return 'https://bls.media/bot?chatwoot'
case IntegrationBlockType.GOOGLE_ANALYTICS: case IntegrationBlockType.GOOGLE_ANALYTICS:
return 'https://docs.typebot.io/editor/blocks/integrations/google-analytics' return 'https://bls.media/bot?google-analytics'
case IntegrationBlockType.GOOGLE_SHEETS: case IntegrationBlockType.GOOGLE_SHEETS:
return 'https://docs.typebot.io/editor/blocks/integrations/google-sheets' return 'https://bls.media/bot?google-sheets'
case IntegrationBlockType.ZAPIER: case IntegrationBlockType.ZAPIER:
return 'https://docs.typebot.io/editor/blocks/integrations/zapier' return 'https://bls.media/bot?zapier'
case IntegrationBlockType.PABBLY_CONNECT: case IntegrationBlockType.PABBLY_CONNECT:
return 'https://docs.typebot.io/editor/blocks/integrations/pabbly' return 'https://bls.media/bot?/pabbly'
case IntegrationBlockType.WEBHOOK: case IntegrationBlockType.WEBHOOK:
return 'https://docs.typebot.io/editor/blocks/integrations/webhook' return 'https://bls.media/bot?webhook'
case InputBlockType.PICTURE_CHOICE: case InputBlockType.PICTURE_CHOICE:
return 'https://docs.typebot.io/editor/blocks/inputs/picture-choice' return 'https://bls.media/bot?picture-choice'
case IntegrationBlockType.OPEN_AI: case IntegrationBlockType.OPEN_AI:
return 'https://docs.typebot.io/editor/blocks/integrations/openai' return 'https://bls.media/bot?openai'
case IntegrationBlockType.MAKE_COM: case IntegrationBlockType.MAKE_COM:
return 'https://docs.typebot.io/editor/blocks/integrations/make-com' return 'https://bls.media/bot?make-com'
case LogicBlockType.AB_TEST: case LogicBlockType.AB_TEST:
return 'https://docs.typebot.io/editor/blocks/logic/abTest' return 'https://bls.media/bot?abTest'
case LogicBlockType.JUMP: case LogicBlockType.JUMP:
return 'https://docs.typebot.io/editor/blocks/logic/jump' return 'https://bls.media/bot?jump'
case IntegrationBlockType.PIXEL: case IntegrationBlockType.PIXEL:
return 'https://docs.typebot.io/editor/blocks/integrations/pixel' return 'https://bls.media/bot?pixel'
case LogicBlockType.CONDITION: case LogicBlockType.CONDITION:
return 'https://docs.typebot.io/editor/blocks/logic/condition' return 'https://bls.media/bot?condition'
default: default:
return blockDef?.docsUrl return blockDef?.docsUrl
} }

View File

@ -166,4 +166,4 @@ Typebot.initStandard({
It will prefill the `Current URL` variable with "https://my-site/account" and the `User name` variable with "John Doe". More info about variables: [here](/editor/variables). It will prefill the `Current URL` variable with "https://my-site/account" and the `User name` variable with "John Doe". More info about variables: [here](/editor/variables).
Note that if your site URL contains query params (i.e. https://typebot.io?User%20name=John%20Doe), the variables will automatically be injected to the typebot. So you don't need to manually transfer query params to the bot embed configuration. Note that if your site URL contains query params (i.e. https://bot.bls.media?User%20name=John%20Doe), the variables will automatically be injected to the typebot. So you don't need to manually transfer query params to the bot embed configuration.