Bugfix: $this was called out of scope in Link filter