[WIP] Bug 1026426 — Handle short URLs

general comment: I'm not sure we want to do this logic here. It's cool because it hides it to the client (index.js) but we would need to duplicate it in case we add backends…