MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Group page do not open from the search results  (Mono Support )

Viewed 8424 time(s), 3 post(s) 2/25/2014 6:44:32 PMby super
super

super

2/25/2014 6:44:32 PM
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).

This content has not been rated yet. 
6018 Reputation 709 Total posts
idrazic

idrazic

2/26/2014 9:16:04 AM
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.
This content has not been rated yet. 
1384 Reputation 152 Total posts
super

super

2/26/2014 12:26:47 PM
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}/" />
This content has not been rated yet. 
6018 Reputation 709 Total posts