I've read the whole thread and it it's a bit confusing so let us first go back to the point where @Alaa first explained the situation and you said it was fixed but there's one problem which is
Smooth scrolling in our demo is powered by the One Page Navigation feature. It's function is to smooth scroll on a section after clicking a menu. If you notice closely, it does not attach the hash (i.e.
#About) to the URL. In summary, it is powered by the click and not entering the URL with hash in the address bar which is what you need.
Now, entering the URL with hash in the address bar like
http://example.com/#section-5 won't animate like what you have experienced. That is the default behavior. There is currently no function in X that will animate the scrolling from the URL. In addition to that, you will take into account the sticky navbar.
There is a jQuery solution for that but, you or a developer should implement it in your site. I will give you some resource but, please note that issues that will arise from the use of the guide and further enhancements would be outside the scope of our support because as I've said above, it's not a feature offered in X yet and it might break some functionality now or in the future.
Here are some links that might solve your problem:
Thank you for understanding.