message: prevent scrolling when links are openened in a new tab
diff: @@ -339,27 +339,32 @@ export const useTechDocsReaderDom = (entityRef: EntityName): Element | null => {
  addLinkClickListener({
  baseUrl: window.location.origin,
  onClick: (event: MouseEvent, url: string) => {
  - // use `window.open` to open links in a new tab when CTRL or META keys are pressed
  - const navigateFn =
  - event.ctrlKey || event.metaKey
  - ? (u: string) => window.open(u, '_blank')
  - : navigate;
  -
  + // detect if CTRL or META keys are pressed so that links can be opened in a new tab with `window.open`
  + const modifierActive = event.ctrlKey || event.metaKey;
  const parsedUrl = new URL(url);
  +
  // hash exists when anchor is clicked on secondary sidebar
  if (parsedUrl.hash) {
  - navigateFn(`${parsedUrl.pathname}${parsedUrl.hash}`);
  + if (modifierActive) {
  + window.open(`${parsedUrl.pathname}${parsedUrl.hash}`, '_blank');
  + } else {
  + navigate(`${parsedUrl.pathname}${parsedUrl.hash}`);
  // Scroll to hash if it's on the current page
  transformedElement
  ?.querySelector(`#${parsedUrl.hash.slice(1)}`)
  ?.scrollIntoView();
  + }
  + } else {
  + if (modifierActive) {
  + window.open(parsedUrl.pathname, '_blank');
  } else {
  - navigateFn(parsedUrl.pathname);
  + navigate(parsedUrl.pathname);
  // Scroll to top of reader if primary sidebar link is clicked
  transformedElement
  ?.querySelector('.md-content__inner')
  ?.scrollIntoView();
  }
  + }
  },
  }),
  onCssReady({
  