Implementing href() method for generating state URLs.