I have just updated to 6.2. That is why it stopped working.
I have got it to work now by adding:
config {
linkVars = L
}
to my template.
I found this in an example. I have no idea what is does, but it has solved my problem.
Do you know how to read the .rst documentation?