I found the fix in the reply from alexcjohnson in the following post
I added the the requests_pathname_prefix to the app=dash.Dash line in my python app.py code
app = dash.Dash(name,server=server,requests_pathname_prefix=‘/dashboard/’)
And now it works!!