fix bug where history location does not account for root URL
Merge pull request #1836 from teddyzeenny/fix-history-location-routing

Fix router's root URL handling