Closed brian-cawley closed 2 years ago
dash.register_page(__name__, path='/test', redirect_from=['/'])
Results in exception
AssertionError: View function mapping is overwriting an existing endpoint function: /
Yes, that's correct - you can't redirect from the root directory.
Instead you can do this:
dash.register_page(__name__, path='/', redirect_from=['/test'])
Sample Code:
dash.register_page(__name__, path='/test', redirect_from=['/'])
Results in exception