Turning off Friendly URLs

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
6/29/2011 3:47:29 PM
Gravatar
Total Posts 8

Turning off Friendly URLs

Hi,

I need to turn off friendly URLs in my site, so that everything is Default.aspx?pageid=x.

I was fiddling around in the web.config and found the settings UseUrlReWriting. I switched it to false, and everything seems to be working. Except for one major issue.

When I navigate to the root page the PageMenu control is empty, and I can't see any of the child pages. However, if I navigate to any other page (using the site map), the PageMenu is there and works perfectly.

Am I doing anything wrong?

6/30/2011 9:09:52 AM
Gravatar
Total Posts 18439

Re: Turning off Friendly URLs

I've made a note of this in our project tracker and will look into it as soon as I have time. I'll post again once I've had a chance to look into it.

Best,

Joe

6/30/2011 12:34:48 PM
Gravatar
Total Posts 8

Re: Turning off Friendly URLs

Thanks!

6/30/2011 12:52:11 PM
Gravatar
Total Posts 8

Re: Turning off Friendly URLs

I just turned on debugging and walked through PageMenu.ascx.cs and found that the line

treeMenu1.DataBind()

Throws this exception:

'System.ArgumentException' does not contain a definition for 'message' and no extension method 'message' accepting a first argument of type 'System.ArgumentException' could be found (are you missing a using directive or an assembly reference?)

I am using .NET 3.5

7/1/2011 6:37:29 AM
Gravatar
Total Posts 18439

Re: Turning off Friendly URLs

This is now fixed in the source code repository so it will be fixed in the next release of mojoPortal.

Best,

Joe

7/1/2011 10:47:15 AM
Gravatar
Total Posts 8

Re: Turning off Friendly URLs

Can I check out the latest source or do I have to wait for the release?

7/1/2011 12:20:46 PM
Gravatar
Total Posts 8

Re: Turning off Friendly URLs

Never mind. I found it.

Works perfectly! Thank you so very much :)

You must sign in to post in the forums. This thread is closed to new posts.