scala: link docs correctly for IDEA.

Fixes #31889.
Closes #33573.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>