imakewebthings/deck.js — pull request #88 by jeremybanks (2012-06-25 16:08:20+00:00)
Title: Hash plugin misbehaves if <base> tag is present

I'm using Deck.js and the hash plugin on a page at:

http://example.com/presentation/

This page contains this tag:

This has been causing the hash plugin to misbehave; it creates relative links assuming they're relative to the current page.

After the presentation first loads, the URL should be set to:

htttp://example.com/presentation/#title-slide

Instead, it is set to:

htttp://example.com/#title-slide

This is obviously not the correct link, and pressing "reload" now bring up my home page, instead of the current slide.

The attached code fixes this for me.

Cheers.