No description, website, or topics provided.
JavaScript CSS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Robust Links

Are you an author of web pages and you don't want your links to die? Here is a really easy way to achieve just that:

  • Express the creation date of your pages in a machine-actionable manner, using the approach.
    • Robust Links currently supports datePublished and dateModified attributes.
  • Include the robustlinks JavaScript and CSS files into your pages as shown below.
  • The result will be that each link will be augmented with the ability to see the linked resource as it was around creation time of the page. This is achieved by resolving links using the Memento Time Travel infrastructure that aggregates web archives, worldwide. At any time, even when a link breaks, the Robust Link will lead to archived content.
  • Even better link robustness can be achieved by decorating the links as explained in the Link Decoration document.
  • You can read about the motivations for using robust links here.

Add Robust Links To Your Webpages

Simply append the following lines to the <head> of your HTML source:

<!-- RobustLinks CSS -->
<link rel="stylesheet" type="text/css" href="" />
<!-- RobustLinks Javascript -->
<script type="text/javascript" src=""></script>
<script type="text/javascript" src=""></script>

RobustLinks Menu

After adding the RobustLinks javascript source to your HTML file, a new link icon will appear next to all the decorated links in the page. Clicking the down arrow in this link icon will pop up a menu with one or more of the following items, depending on the decoration attributes provided in each of the links.

  • Get near link date ...: When clicking this menu item, the javascript library will use the datetime provided in the data-versiondate attribute along with the original url and redirect you to the closest memento around that datetime using the Memento Time Travel service.

  • Get from ...: Clicking this menu item will redirect you to the memento url provided in the data-versionurl attribute.

  • Get at current date: Clicking this menu item will take you to the original url provided in the data-originalurl attribute.

  • Get near page creation date ...: This menu item is similar to the Get near link date ..., except it uses the attribute datePublished, if provided in the linking HTML page.

  • Get near page modified date ...: This menu item is similar to the Get near link date ..., except it uses the attribute dateModified, if provided in the linking HTML page.

Exclude URLs from Robust Links

You can exclude certain URLs in your webpage from showing the robust links drop down menu by adding them to the robustlinks-uri-exclude-list.js file. Typically, URLs in a webpage that point to other pages in your site, or URLs to any redirection services can be included in this exclusion list.

To exclude URLs, simply download a copy of the robustlinks-uri-exclude-list.js file, edit this to include the URLs that need to be excluded, and replace the URL of the robustlinks-uri-exclude-list.js file in the HTML source with the new HTTP URL of the local file.

The exclusion file contains a list of either full HTTP URLs to be excluded, or URL patterns constructed as Javascript Regular Expressions. Simply put the URL patterns within quotes separated by commas, except for the last URI pattern. A sample exclusion list looks like:

var RLuriPatternsToExclude = [



See the license.