gizmodo
  •  gizmodo
  • 54.2% (Neutral)
  • YAF Forumling Topic Starter
2017-03-12T15:45:38Z
I have the following in my UrlRewriter.config file:
  <rewrite url="^~/forum/(.+)?posts/t([0-9]+)find([-a-z]+)-(([-a-z0-9]+))?(\?(.+))?$" to="~/forum/$1default.aspx?g=posts&amp;t=$2&amp;find=$3&amp;$7" processing="stop" />
  <rewrite url="^~/forum/(.+)?posts/t([0-9]+)p([0-9]+)-(([-a-z0-9]+))?(\?(.+))?$" to="~/forum/$1default.aspx?g=posts&amp;t=$2&amp;p=$3&amp;$7" processing="stop" />
  <rewrite url="^~/forum/(.+)?posts/t([0-9]+)-(([-a-z0-9]+))?(\?(.+))?$" to="~/forum/$1default.aspx?g=posts&amp;t=$2&amp;$6" processing="stop" />
  <rewrite url="^~/forum/(.+)?posts/t([0-9]+)?(\?(.+))?$" to="~/forum/$1default.aspx?g=posts&amp;t=$2&amp;$5" processing="stop" />
  <rewrite url="^~/forum/(.+)?posts/m([0-9]+)find([-a-z]+)-(([-a-z0-9]+))?(\?(.+))?$" to="~/forum/$1default.aspx?g=posts&amp;m=$2&amp;find=$3&amp;$7" processing="stop" />
  <rewrite url="^~/forum/(.+)?posts/m([0-9]+)-(([-a-z0-9]+))?(\?(.+))?$" to="~/forum/$1default.aspx?g=posts&amp;m=$2&amp;$6" processing="stop" />


When a user clicks on the Page 2 pagination link they are brought back to the forum index with the same URL as the paged link (DOMAIN/forum/posts/t3-TOPIC-NAME/page2)
Sponsor
gizmodo
  •  gizmodo
  • 54.2% (Neutral)
  • YAF Forumling Topic Starter
2017-03-12T16:09:02Z
I was able to figure this out. It turns out the UrlRewriter.config file I was using was from an outdated example (I think it was the YAF.SampleWebApplication-v2.0-C example). It was looking for "p" instead of "page" among a lot of other changes.

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

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved