Update path using frontend variable