Route article detail tabs in the URL and pin a preferred default.
Use /artikel/:sku/:tab with a localStorage-backed default, and a pin control to set which tab opens first.
This commit is contained in:
@@ -29,6 +29,7 @@ import {
|
||||
parseFilter,
|
||||
} from './searchFormat';
|
||||
import { preserveSearchFocus } from './searchFocus';
|
||||
import { artikelDetailPath } from './articleRoute';
|
||||
import withSearchParams from './withSearchParams';
|
||||
|
||||
const resultRowSx = {
|
||||
@@ -430,7 +431,7 @@ class ArtikelSearchPage extends Component {
|
||||
onMouseDown={(e) => e.preventDefault()}
|
||||
onClick={() => {
|
||||
this.persistQuery();
|
||||
this.props.navigate(`/artikel/${encodeURIComponent(row.sku)}`);
|
||||
this.props.navigate(artikelDetailPath(row));
|
||||
}}
|
||||
sx={resultRowSx}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user