Change front-end according to path attribute