YAFLogo

johnk
  • johnk
  • 74.8% (Friendly)
  • YAF All-the-Time Topic Starter
11 years ago
I noticed that when user clicks on

http://www.example.com/forum/default.aspx?g=posts&t=100 

YAF automatically redirects users to (and browser window scrolls down to first post)

http://www.example.com/forum/default.aspx?g=posts&t=100#post100 .

I would like to prevent this auto scroll down (and automatically adding #post100) to URL. Could you tell me which file and which line is adding that code?

I tried looking into \Control\DisplayPost.ascx and \Pages\Posts.ascx and could not find the correct line.

Thank you 🙂

Sponsor
johnk
  • johnk
  • 74.8% (Friendly)
  • YAF All-the-Time Topic Starter
bbobb
  • bbobb
  • 100% (Exalted)
  • YAF Developer
11 years ago
posts.aspx.cs look for GoToPage
johnk
  • johnk
  • 74.8% (Friendly)
  • YAF All-the-Time Topic Starter
11 years ago

posts.aspx.cs look for GoToPage

Originally Posted by: bbobb 

I tried that few days ago. I tried it again just now. I commented out the "GotoAnchorJs" script. But it did not change anything.

After changing the post.ascx.cs page, do I need to build the solution again (by running build.bat)?

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
11 years ago

posts.aspx.cs look for GoToPage

Originally Posted by: johnk 

I tried that few days ago. I tried it again just now. I commented out the "GotoAnchorJs" script. But it did not change anything.

After changing the post.ascx.cs page, do I need to build the solution again (by running build.bat)?

Originally Posted by: bbobb 

Yes you need to rebuild the solution.