0

I am working on a web app where I display a list of website but the problem is that when I click www.example.com, for example, then that website it will not open. Instead

it will append to the localhost:5000/www.example.com

example.com

//Code section

     {% for k, v in  diction %}


 <a href="{{ bookKeeping[k]}}"> {{ bookKeeping[k] }}</a></br>


     {% endfor %}
Cœur
  • 37,241
  • 25
  • 195
  • 267
Samun
  • 151
  • 1
  • 1
  • 12

1 Answers1

1

See Should I use absolute or relative URLs? and HTML href Attribute.
It should be <a href="http://{{ bookKeeping[k]}}"> {{ bookKeeping[k] }}</a></br> for absolute URL.