I think that it should be in `getUrl()` method rather than in `render()`