[fixed] location="history" fallback
fixed getCurrentPath with disabledHistory