support permalinks on widget, gonna replace with 2.2 code soon