Add links to history

- In future I will try to avoid saving of full URLs in database