I totally forgot to check that the links actually points to the current document. Sorry about that!

I've just discovered another issue though: I have found PDF files where the links actually works in fullscreen mode (with or without my patch applied). Should I close this issue until I figure out how to avoid this?