Jekyll Short Url

date
Oct 21, 2017
slug
jekyll-short-url
status
Published
tags
Website
Jekyll
Blog
type
Post
OG_override
summary
Jekyll Short URL uses Goo.gl as a back-end and a small Script on your 404 page. This post contains depreciated APIs, Google has shut down Goo.gl. Please consider using a different URL shortening service.
Jekyll Short URL uses Goo.gl as a back-end and a small Script on your 404 page.
PLEASE NOTE THAT GOOGLE HAS SHUT DOWN GOO.GL

How To

Place this in your 404 page.
<script>if (window.location.href.indexOf("sh") > -1) {var shortCode = document.location.href.substring( document.location.href.lastIndexOf( '/' ) );window.location.href = "https://goo.gl" + shortCode; }</script>
To use your Jekyll Short URL simply navigate toyourblog.com/sh/shorturl.

© Clark Weckmann 2014 - 2022