Fix invalid site parameter sent in request

Do not use the global current active site for everything.