Added functionality for calculating link with repeat params