YAFLogo

johnk
  • johnk
  • 74.8% (Friendly)
  • YAF All-the-Time Topic Starter
10 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
10 years ago
posts.aspx.cs look for GoToPage
johnk
  • johnk
  • 74.8% (Friendly)
  • YAF All-the-Time Topic Starter
10 years ago
Originally Posted by: bbobb 

posts.aspx.cs look for GoToPage



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: 3.0.3
10 years ago
Originally Posted by: johnk 

Originally Posted by: bbobb 

posts.aspx.cs look for GoToPage



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)?



Yes you need to rebuild the solution.

YAF Logo Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button