Mono Support Group page do not open from the search results 

Viewed 9643 time(s), 3 post(s), 2/25/2014 6:44:32 PM - by super
2/25/2014 6:44:32 PM
6018 Reputation 709 Total posts

I have popular a group list on the homepage:

<MonoX:PopularGroupsList runat="server" ID="NewGroups1" CacheDuration="600" PagingEnabled="false" MaxDescriptionChars="90" AvatarSize="20" PageSize="5" RewritePageTitle="false"></MonoX:PopularGroupsList>


The initial problem was  that if any user click on any group, the group page never opens and the rewrite rule keep  the user on homepage so putting group list on homepage creates  this problem and obviously if groups are on homepage, the users might wanna click on it.

So solve the problem,

I changed this:
<rewrite url="^(.*)/(.*)/GroupView/(.*)/(.*)/(\?(.+))?$" to="$1/$2.aspx?GroupId=$3&$6" name="GroupView" defaultPage="/MonoX/Pages/SocialNetworking/Groups.aspx" urlPattern="/{PageName}/GroupView/{ShortId}/{Slug}/" />

To this:
<rewrite url="^(.*)/(.*)/GroupView/(.*)/(.*)/(\?(.+))?$" to="$1/$2.aspx?GroupId=$3&$6" name="GroupView" defaultPage="/MonoX/Pages/SocialNetworking/Groups.aspx" urlPattern="/MonoX/Pages/SocialNetworking/Groups/GroupView/{ShortId}/{Slug}/" />

Now the problem is,  if I search for any Group in search,  the group page do not open from the search results, I click on it and I stays on the search result page and nothing happens (nothing is in log file).

1
2/26/2014 9:16:04 AM
1384 Reputation 152 Total posts

Set the defaultPage="" attribute to empty, this time default page is passed as the caller; the urlPattern looks good.
Note that I fixed this issue in v5.1.

2
2/26/2014 12:26:47 PM
6018 Reputation 709 Total posts

Thank you - Here is my updates rule:

<rewrite url="^(.*)/(.*)/GroupView/(.*)/(.*)/(\?(.+))?$" to="$1/$2.aspx?GroupId=$3&$6" name="GroupView" defaultPage="" urlPattern="/MonoX/Pages/SocialNetworking/Groups/GroupView/{ShortId}/{Slug}/" />

3
This is a demo site for MonoX. Please visit Mono Software for more info.