This PR should fix the fact that the tab links in the dataset page aren't currently working.

(Fixed with lots of help from @royrutto)
On a related note, @royrutto @pld: the ideal fix for this would also contain a test. 
Any model for such a test that I could follow?