Could you please help me with Python-Flask server misunderstanding. I have some project with flask, it perfectly works on local server 127.0.0.1, but when I moved it to the Web Server (blue host), some of my script give me these errors:
Here I have jQuery, Ajax response to show a table without reloading page:
<button class="myButton" id = "Lbutton">Load</button>
<script>
$("#Lbutton").click(function(){
  $.ajax({
          url: "/table,
          type: "get",
          data: {jsdata: $( "#select option:selected" ).text()},
          success: function(response) {
            $("#place_for_suggestions").html(response);
          },
          error: function(xhr) {
            // handle error
          }
        });
});
</script>
url: "/table, is the link for Flask function:
@FlaskApp2.route('/table')
def table():
    modid = request.args.get('jsdata')
    return render_template('table.html')
But finally the Server gave me error:
File does not exist: /home1/user/public_html/table
Why direct link for action, server understand like a link for a file?
So, every action to Python-Flask
<form action="/sendemail" method="post">
the Server understand like a link and give an error message !
What I'm doing wrong ?
 
    