Use actual page URL as base for gradients (#212)

This PR fixes #212.