Please review the attached patch which implements the simple fix documented in the following issue:
PKI TRAC Ticket #1284 - pkispawn URL redirect issue
This patch was tested on an x86_64 machine running Fedora 21.