Dash route path infinite


I’m a newbie to dash (and python web) and i can’t find why when i run a dash application is running correctly the app but we can access to the app through all the route after the last slash like this link :

I’m using the basic code from Dash Website and running it locally: (trying running through IIS with wfastcgi give the same result)

import dash
import dash_core_components as dcc
import dash_html_components as html
import plotly.express as px
import pandas as pd

external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css']

app = dash.Dash(__name__, external_stylesheets=external_stylesheets)

# assume you have a "long-form" data frame
# see https://plotly.com/python/px-arguments/ for more options
df = pd.DataFrame({
    "Fruit": ["Apples", "Oranges", "Bananas", "Apples", "Oranges", "Bananas"],
    "Amount": [4, 1, 2, 2, 4, 5],
    "City": ["SF", "SF", "SF", "Montreal", "Montreal", "Montreal"]

fig = px.bar(df, x="Fruit", y="Amount", color="City", barmode="group")

app.layout = html.Div(children=[
    html.H1(children='Hello Dash'),

        Dash: A web application framework for Python.


if __name__ == '__main__':

Can someone explain to me the mecasnim please? I think it’s about Flask routing but i can’t find where to ‘block’ ‘extended’ path.


ps: sorry for grammatical errors i’m from :st_martin: