added Router name check in footer.js to avoid some exception