Add $segment for get the context