Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

completed "how to create link" article

Steven Tey6c94a634e5c9
diff --git a/app/dub.sh/help/article/[slug]/page.tsx b/app/dub.sh/help/article/[slug]/page.tsx
index b1f01b5745..f9dbc1a38c 100644
--- a/app/dub.sh/help/article/[slug]/page.tsx
+++ b/app/dub.sh/help/article/[slug]/page.tsx
@@ -129,9 +129,11 @@ export default async function HelpArticle({
)}
<Feedback />
</div>
- <div className="sticky top-20 col-span-1 hidden self-start sm:block">
- <TableOfContents items={data.tableOfContents} />
- <div className="mt-10 flex justify-center border-t border-gray-200 pt-5">
+ <div className="sticky top-20 col-span-1 hidden flex-col space-y-10 divide-y divide-gray-200 self-start sm:flex">
+ {data.tableOfContents.length > 0 && (
+ <TableOfContents items={data.tableOfContents} />
+ )}
+ <div className="flex justify-center pt-5">
<Link
href={`https://github.com/steven-tey/dub/blob/main/content/help/${params.slug}.mdx`}
target="_blank"
diff --git a/content/help/how-to-add-custom-domain.mdx b/content/help/how-to-add-custom-domain.mdx
index 4127971dbe..ce36d49013 100644
--- a/content/help/how-to-add-custom-domain.mdx
+++ b/content/help/how-to-add-custom-domain.mdx
@@ -36,7 +36,7 @@ First, [log in](https://app.dub.sh/login) to your Dub account.
2. Enter the domain you want to use under the "Shortlink domain" input and click **Create project**.
<Image
- alt="Screenshot of the project creation modal in Dub"
+ alt="The project creation modal in Dub"
src="https://d2vwwcvoksz7ty.cloudfront.net/help/create-project-modal.png"
width={1315}
height={871}
@@ -51,7 +51,7 @@ If you already have a project and are looking to add another domain to it:
3. Enter the domain you want to use and click **Add domain**.
<Image
- alt="Screenshot of the 'Add Domain' modal in Dub"
+ alt="The Add Domain modal in Dub"
src="https://d2vwwcvoksz7ty.cloudfront.net/help/add-domain-modal.png"
width={1143}
height={797}
diff --git a/content/help/how-to-create-link.mdx b/content/help/how-to-create-link.mdx
index ed9677bb87..b4b29e50ab 100644
--- a/content/help/how-to-create-link.mdx
+++ b/content/help/how-to-create-link.mdx
@@ -12,7 +12,7 @@ related:
- how-to-add-custom-domain
---
-Our link builder comes with features like UTM builder, device targeting, password protection, expiration dates, and more.
+Our link builder comes with powerful features like UTM builder, device targeting, password protection, expiration dates, and more.
Dub is also the only link management tool that lets you customize the social media cards for your links, so you can have full control over how your links look when shared on social media.
@@ -48,7 +48,7 @@ There are 3 ways to open the Dub link builder to create a short link:
3. **Fastest**: Just paste in a valid URL into the dashboard. This will automatically open the link builder and pre-fill the URL field.
<Image
- alt="Screenshot of the Dub link builder"
+ alt="The Dub link builder"
src="https://d2vwwcvoksz7ty.cloudfront.net/help/dub-link-builder.png"
width={1353}
height={1004}
@@ -62,10 +62,9 @@ Inside the link builder are the following fields:
4. **Custom Social Media Cards**: Customize how your links look when shared on social media. [Learn more](#custom-social-media-cards).
5. **UTM Builder**: Add UTM parameters to your links. [Learn more](#utm-builder).
6. **Password Protection**: Protect your links with a password. [Learn more](#password-protection).
-7. **Expiration Date**: Set an expiration date for your links.
-8. **iOS Targeting**: Set a custom destination URL for iOS devices.
-9. **Android Targeting**: Set a custom destination URL for Android devices.
-10. **Social Previews**: See how your links will look when shared on social media.
+7. **Expiration Date**: Set an expiration date for your links. [Learn more](#expiration-date).
+8. **Device Targeting**: Set a custom destination URL for iOS and Android devices. [Learn more](#device-targeting).
+9. **Social Previews**: See how your links will look when shared on social media.
## Custom social media cards
@@ -127,3 +126,33 @@ Then, when you share your link, the user will be prompted to enter a password be
/>
Here's a demo: [dub.sh/password](https://dub.sh/password) (password is `dub`)
+
+## Expiration date
+
+You can set an expiration date for your links by toggling the "Expiration Date" switch in the link builder.
+
+<Image
+ alt="Setting an expiration date for your Dub links"
+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/expiration-date.png"
+ width={604}
+ height={390}
+/>
+
+If you set an expiration date for your link, the user will be redirected to a 404 page when they try to access the link after the expiration date.
+
+## Device targeting
+
+Device targeting is a powerful feature that lets you personalize the destination URL for your links based on the user's device type.
+
+For example, you can set a custom destination URL for iOS devices by toggling the "iOS Targeting" switch in the link builder, and a different URL for Android devices by toggling the "Android Targeting" switch in the link builder.
+
+<Image
+ alt="Use device targeting to personalize your link's behavior based on the user's device type"
+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/device-targeting.png"
+ width={810}
+ height={366}
+/>
+
+This is particularly useful if you want to send iOS users to the App Store to download your iOS app, and Android users to the Google Play Store to download your Android app.
+
+In both cases, the main **Destination URL** will be used as the fallback URL that will be used if the user's device type does not match the targeting rules.
diff --git a/content/help/how-to-invite-teammates.mdx b/content/help/how-to-invite-teammates.mdx
index 7a69328f28..e232ec1cc8 100644
--- a/content/help/how-to-invite-teammates.mdx
+++ b/content/help/how-to-invite-teammates.mdx
@@ -22,7 +22,7 @@ To invite a teammate:
3. Enter your teammate's email address and click on the **Send invite** button.
<Image
- alt="Screenshot of the Invite Teammate modal in Dub"
+ alt="The Invite Teammate modal in Dub"
src="https://d2vwwcvoksz7ty.cloudfront.net/help/invite-teammate-modal.png"
width={1127}
height={730}
@@ -53,7 +53,7 @@ If you want to revoke / resend an invitation, you can do so by following these s
5. Click on the **Confirm remove** button to confirm.
<Image
- alt="Screenshot of the Remove Invitation modal in Dub"
+ alt="The Remove Invitation modal in Dub"
src="https://d2vwwcvoksz7ty.cloudfront.net/help/remove-invite-modal.png"
width={1465}
height={855}
@@ -69,7 +69,7 @@ If a teammate no longer needs access to your project, you can remove them from y
4. Click on the **Confirm remove** button to confirm.
<Image
- alt="Screenshot of the Remove Teammate modal in Dub"
+ alt="The Remove Teammate modal in Dub"
src="https://d2vwwcvoksz7ty.cloudfront.net/help/remove-teammate-modal.png"
width={1322}
height={901}
diff --git a/content/help/how-to-redirect-root-domain.mdx b/content/help/how-to-redirect-root-domain.mdx
index 85a034de94..0e727d6628 100644
--- a/content/help/how-to-redirect-root-domain.mdx
+++ b/content/help/how-to-redirect-root-domain.mdx
@@ -28,7 +28,7 @@ To redirect your domain to a URL of your choice, follow these steps:
5. Click "Save changes".
<Image
- alt="Screenshot of the 'Domain Settings' modal in Dub"
+ alt="The 'Domain Settings' modal in Dub"
src="https://d2vwwcvoksz7ty.cloudfront.net/help/domain-settings-modal.png"
width={1146}
height={755}
diff --git a/content/help/what-is-a-project.mdx b/content/help/what-is-a-project.mdx
index e369f0acc9..e28386d89f 100644
--- a/content/help/what-is-a-project.mdx
+++ b/content/help/what-is-a-project.mdx
@@ -22,7 +22,7 @@ You can think of a Dub project as a "Team" – you can [invite your teammates](
To create a project, go to the [Dub Dashboard](https://app.dub.sh/) and click on the **Create project** button.
<Image
- alt="Screenshot of the project creation modal in Dub"
+ alt="The project creation modal in Dub"
src="https://d2vwwcvoksz7ty.cloudfront.net/help/create-project-modal.png"
width={1315}
height={871}