Commit a7c98621aea5aaf1742a61e95e6c9325a6e404e7

Fix: Proper way of specifying URLs
  • Diff rendering mode:
  • inline
  • side by side

templates/web.html

30 if(!url.match(/http/)) {30 if(!url.match(/http/)) {
31 url = 'http://' + url;31 url = 'http://' + url;
32 }32 }
33 window.location.href = '/SWeeText?url=' + encodeURIComponent(url);
33 window.location.href = '{{ url_for("SWeeText") }}?url=' + encodeURIComponent(url);
34 }34 }
35 </script>35 </script>
36 </body>36 </body>