Use the REQUEST_URI for Post URLs

This filter can be useful for plugins that generate dynamic content — always using the same page / post ID for example — without bothering to hook the WordPress ‘post_link’ or ‘the_permalink’ filters to modify the URL. You could enhance this filter by testing for a specific post ID, category, etc.