This would be better written as `url('editors.queue_version_notes').split('/')|last|int`. `!= 0` isn't needed since the return of `|int` is truthy or falsey. If you do this instead, there's no need for the `{% set %}` or `{% with %}` blocks, either, which cleans things up.