Dash route path infinite

Hi,

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

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'),

    html.Div(children='''
        Dash: A web application framework for Python.
    '''),

    dcc.Graph(
        id='example-graph',
        figure=fig
    )
])

if __name__ == '__main__':
    app.run_server(debug=True)

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.

Thx!

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