TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Branch Logic and Short URLs

3 pointsby adrian_popabout 9 years ago
Let me tell you about my little hobby project idea that I plan to release open source (personal use) or SAAS(hosted version).<p>I want to combine traditional short url creation service with branch logic (conditional logic) and some ideas from smarturl.it<p>Create a short url that has the following logic: detect country + browsing device + screen resolution and other conditions.<p>Conditions can be added from user panel without needing to generate a different short url.<p>Eg. whenever someone clicks your shorten url it redirects to:<p>- URL 1 if country is France and iOS<p>- URL 2 if country is US and Android<p>- URL 3 if country is UK and Chrome and resolution greater than 1024x768<p>I am sure many other conditions will come into my mind.<p>I need a little feedback or critics from you. Thank you.

2 comments

allanderekabout 9 years ago
I guess I&#x27;m struggling quite to see the use case here. For web-site providers themselves they would much rather do the conditional logic themselves because then that would apply to all visitors not just those that come via your shorturl service.<p>I can perhaps imagine someone tweeting something like: &quot;I&#x27;ve just published a new book, get it here&quot;, where &#x27;here&#x27; is a link, which might send the user to the correct Amazon page based on their location (eg. amazon.com for US users and amazon.co.uk for UK based users).
timvdalenabout 9 years ago
Sounds interesting, but personally I always handle this in a tiny script that the short URL points to.<p>I appreciate the idea of a dashboard where you configure this with some UI, but I think most people that have this problem have the skills to solve it themselves (especially since the solution to a specific case of this problem is usually very small).<p>Who are you targeting with this? I can see some use people in marketing-type roles that would want to configure this without asking a developer, but I&#x27;m afraid that area is kind of small.<p>Good luck!
评论 #11478496 未加载