BUG: Fix the broken links under navigation bar.

Add checking for homeurl links