index: fix passing link to a collapsed selection

With tests
test: enable Travis-CI + Saucelabs testing