Use get_absolute_url for flatpages

Fixes #707