import 'bootstrap/dist/css/bootstrap.min.css';
import 'jquery/dist/jquery.min';
import 'popper.js/dist/popper.min';
import 'bootstrap/dist/js/bootstrap.min';
import './styles/config/print.css'
import $ from 'jquery';
import 'jquery.scrollto';

  // Enables sections to display right beneath the navbar when deep linking
  if (window.location.hash) {
    setTimeout(() => {
      $.scrollTo($(window.location.hash), {
        offset: {top: -80}
      });
    }, 100);
  } else {
    window.scrollTo(0, 0);
  }
@@ -241,90 +241,57 @@
 ';%0A%0A
-  // Enables sections to display right beneath the navbar when deep linking%0A
+%0A  export const onClientEntry = () =%3E %7B%0A  
   if (
+!
 wind
@@ -310,16 +310,130 @@
 hash) %7B%0A
+      window.scrollTo(0, 0);%0A    %7D else %7B%0A      // Race condition with default browser behavior for deep links.%0A  
     setT
@@ -453,16 +453,18 @@
 %7B%0A      
+  
 $.scroll
@@ -501,16 +501,18 @@
         
+  
 offset: 
@@ -532,16 +532,18 @@
     
+  
 %7D);%0A    
 %7D, 1
@@ -542,54 +542,27 @@
     
+ 
+ 
 %7D, 100
+0
 )
-;
 %0A  
-%7D else %7B%0A    window.scrollTo(0, 0);
+  %7D%0A  %7D
 %0A  
-%7D

Update onClientEntry()