Use the wrapper function again to make it work on subpages.

The url was absolute but used as relative, which of course only worked on the frontpage.