Debug output; url fix

Added the new parms to the debug output
Fixed an issue with the profile being lost in the url