Anchor links will work for content that is already on the page, but cannot be used to trigger updating the page so that content which is not initially present is loaded.
So if your View with infinite-scroll pagination initially loads 10 posts, then the anchor link would work if the post being linked to happened to be one of the first 10, but if you were trying to link to the 23rd post in the results, then, no, it wouldn't work, the id wouldn't be found and so the page would simply load at the top.
Is there a way to get a page URL update once the page is scrolled...
I mean, when user go to the page for the first time it would appear simply as domain.com/page/
But once user reaches to the end then another page loads automatically, can the url be changed (updated) to domain.com/page/1 now and /page/2 and so on..when new page loads up..... so that I can have the #id added to that specific page.. domain.com/page/2#gohere thus making it work in infinite scrolling...
You can do it when you have manual pagination links on the page (even if the pagination updates via ajax if you update the settings so that the URL updates), but you need to include the full links for different pages that also include the View id etc., so they would look something like this: