add filter for permalink