TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Branch Logic and Short URLs

3 点作者 adrian_pop大约 9 年前
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 条评论

allanderek大约 9 年前
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).
timvdalen大约 9 年前
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 未加载