Fixed issue where / was inserted at end path when push/replace state