Fixed a bug that would cause wrong URLs to be generated by current() on some servers.