Add some code to move from cookies to parameters when passing through from portal to repo