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 )

9517 put(a) pogledan, 3 odgovor(a) 25.2.2014. 18:44:32Kreirao(la) super
super

super

25.2.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).

Ovaj sadržaj još nije ocijenjen. 
6018 Reputacija 709 Ukupno objava
idrazic

idrazic

26.2.2014. 9: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.
Ovaj sadržaj još nije ocijenjen. 
1384 Reputacija 152 Ukupno objava
super

super

26.2.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}/" />
Ovaj sadržaj još nije ocijenjen. 
6018 Reputacija 709 Ukupno objava