fix bag getUrlBeforeAction