Revert "Adjust admin url passed to js to just the path"

This reverts commit 02fc6d70748f6451022f2bf1d2b9c93bd8b2fad4.