added condition to support none href modification for compatibility with routing single page applications