Skip to content

Static webpage that takes url params and creates multiple links from one!

License

Notifications You must be signed in to change notification settings

joshua-holmes/multiple-links

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multiple Links

What is it?

Welcome! This project makes it possible to create a link that directs user to multiple links! This is useful if you are only able to share a single URL (e.g. due to form limitations), but want the receiver of the URL to get to visit multiple URLs.

Best of all, you can use it as much as you like over on multiple-links.com, links never expire, you don't need an account (can't create one actually), and it is forever free to use!

Examples

Visit this link to see my website, github, and linkedin:

https://multiple-links.com?v=1&l=holmes-software.com&h=My%20Website&t=GitHub&l=github.com/joshua-holmes&t=LinkedIn&l=www.linkedin.com/in/joshua-phillip-holmes/&h=My%20Socials

Notice all the data you see on the page is embedded in the URL params of the URL above. That's how it works.

How do I make my own Multi-Link?

Right now, I don't have an easy way of building links, though that is coming soon. So I'll tell you how it works:

Short version

Just edit one of these example links with your own url(s).

Want a couple cards?

https://multiple-links.com/?v=1&l=example.com&h=My%20Example%20Website&l=example.com&h=My%20Other%20Example%20Website

Want one card with a couple links?

https://multiple-links.com/?v=1&l=example.com&l=example.com&h=My%20Example%20Website

Want to title those links? (same principle can be applied to the multiple card example as well)

https://multiple-links.com/?v=1&t=My%20Link&l=example.com&t=My%20Other%20Link&l=example.com&h=My%20Example%20Website

Long version

There are 3 possible URL params:

  • v (required)
  • h (required)
  • l (required for each link)
  • t (optional for each link)

A "card" consists of card header (h param) and as many links as desired (0 links is valid).

A "link" consists of a url (l param for "link") and an optional text (t param), which is what shows up as clickable text. If t is not present for a link, the link's url will show up as the clickable text.

First, the v param is always required and must be the first param. "v" stands for version. Right now, only version 1 is supported, so you must start all Mutli-Links with ?v=1. This is assumed in the rest of this explanation.

To build a basic card, simply add a h param h=MyCard. Notice I didn't include any links. This is valid. Two cards? h=CardOne&h=CardTwo. Want a space between your words? h=My%20Card. Pretty sure h=My Card also works, though it's not technically correct. See here for other encodings.

To build a link, use l like this: l=https://google.com. It also works without the "https" bit, though "https" is assumed, not "http": l=google.com. Want 2 links on the same card? Ok. l=google.com&l=facebook.com. Want to add custom clickable text? t=Google&l=google.com&t=Facebook&l=facebook.com. NOTE: the t param (if you include it) MUST come before the l param!

"Now hold on a minute," you say, "I just tried to make a link and nothing showed up! What gives!"

You're right. A link does nothing unless it belongs to a card. So add h at the end! t=Google&l=google.com&h=MyCard. NOTE: the link MUST come before the card header. You can think of the h param as closing up your card.

Don't want a card header? Wow, you're picky. Me too. Just make h empty: t=Google&l=google.com&h=

To add all that to the version number mentioned at the top, the params look like this in total:

?v=1&t=Google&l=google.com&h=MyCard

And to attach that to the multiple-links.com domain, it looks like this:

https://multiple-links.com?v=1&t=Google&l=google.com&h=MyCard

Hopefully this banter has made it clear. If you have questions, just reach out somehow.

About

Static webpage that takes url params and creates multiple links from one!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published