set current tab according to url material ui tabs code example
Example: remove selected bar mui tabs
return(
<Tabs
value={tabPosition}
onChange={handleTabChange}
TabIndicatorProps={{ <--- here
style: {
display: "none",
},
}} <-- to here
>
<Tab
label={"File"}
{...a11yProps(0)}
/>
<Tab
label={"New"}
{...a11yProps(1)}
/>
</Tabs>
);