Resolve a relative path or a route to an absolute path.
def resolve_path(path_or_route: Union[str, solara.Route], level=0) -> str: ...
If the path is a string and starts with a
/', it is returned as is.
... route_current, routes_current_level = solara.routes() # route_current.path == "banana" path = solara.resolve_path(route_current) # path == "/fruit/banana" path_same = solara.resolve_path("banana") # path_same == path == "/fruit/banana" ...
- path_or_route: a path string or a
solara.Routeobject to resolve.