Syntax issue with using "ref" instead of (.GetPage ......blablabl).Permalink

I have very strong opinions about how a link render hook should function, and am not terribly interested in troubleshooting other approaches. This is the drop-in I use everywhere. Take the best, leave the rest.