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 9682 time(s), 3 post(s) 25.02.2014 18:44:32by super
super

super

25.02.2014 18:44:32
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).

Dieser Inhalt wurde noch nicht bewertet. 
6018 Reputation 709 Total posts
idrazic

idrazic

26.02.2014 09:16:04
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.
Dieser Inhalt wurde noch nicht bewertet. 
1384 Reputation 152 Total posts
super

super

26.02.2014 12:26:47
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}/" />
Dieser Inhalt wurde noch nicht bewertet. 
6018 Reputation 709 Total posts