Flask URL routing : url_for only passes first argument
问题 I have jQuery tabbed panel that loads pages within the tab on click. This works fine. What I want now is to pass additional arguments to the url such as the title of the tab being clicked. The script to load is the following: $(document).ready(function(){ $( "#content" ).load( "{{url_for(xyz, query=query)}}" ); var tabs = $('.tabs > li'); tabs.on("click", function(){ tabs.removeClass('active'); $(this).addClass('active'); $( "#content" ).load( "{{url_for(xyz, query=query)}}" ); }) }); The