Hello,
Can you please let us know which Modal you are using so that we can provide you with further assistance.
Consider using the following code at the bottom of the Page:
<script>
jQuery(document).ready( function(){
setTimeout(function() {
if (location.hash) {
window.scrollTo(0, 0);
}
}, 1);
});
jQuery(window).on('load', function(){
var divScrollToAnchor = window.location.hash;
if( typeof divScrollToAnchor !== 'undefined' ) {
var t = setTimeout( function(){
jQuery('html,body').stop(true).animate({
'scrollTop': jQuery( divScrollToAnchor ).offset().top - 100
}, 700, 'easeOutQuad');
}, 1000);
}
});
</script>
Then simply use https://your-website.com/page.html#section-id to Scroll to that Section.
This will definitely work fine. Hope this Helps!
Let us know if we can help you with anything else or if you find any further issues.