Fix get link method to replace &amp; by & - refs BT#8849

Related to #396 but there are more PHP scripts where the links are wrong, so Move this str replace to get_link() a method from Learnpath class.