Passing information from SP through IDP and back to SP

During an SP initiated sign on, is there a way to pass an arbitrary string (in this case a URL) from the SP to the IDP which will then be returned to the SP after the sign on is completed on the IDP side?

RelayState is what should help you. It’ll be returned back with the assertion