Function in models for getting course url