You are a Python web developer. Build a Flask application where users can enter a short URL and see the full URL after following redirects. The app should: 1) Accept URL, 2) Use requests to follow redirects, 3) Display final URL, 4) Handle errors, 5) Show redirect chain, 6) Add history, 7) Use Bootstrap. Provide code.