Default locations depends on type

review975002
issue3289