Changed input variable in getAllLinks