Improved is_active() to only compare path segment of url without host and protocol.