Preventing custom pages creating friendly URLs

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
5/17/2007 7:21:06 AM
Gravatar
Total Posts 5

Preventing custom pages creating friendly URLs

Hi Joe (and everyone else)

We've run into a bit of a problem with adding custom pages to a mojoportal installation. We've created some new local aspx pages to provide additional functionality to our application. However, when inserting these pages into the Mojoportal menu using the "Add/Edit Page" admin section, we find that Mojo automatically adds a friendly URL of the same file name into the database. This friendly URL then has precedence over the actual file when browsing the site meaning that people can't reach the page.

At the moment we're getting round it by physically removing the appropriate row from the mp_FriendlyUrls table but I wanted to know if there's some way to prevent the row being created when the page is added in Mojo instead?

As an additional issue, we're seeing an occasional, recurring issue with menu display on page refresh - from time to time the left-hand menu doesn't show. A further refresh cures this but the log file doesn't show an error for the missing menu. Have you come across this problem before?

many thanks

Dave

 

 

5/17/2007 7:38:07 AM
Gravatar
Total Posts 18439

Re: Preventing custom pages creating friendly URLs

Hi Dave,

As of the most recent release, mojoPortal won't create friendly urls that mask physical pages. In previous versions you could avoid the problem by using fully qualified urls when creating menu links to physical pages, ie http://... rather than ~/... or deleting the friendly url using the Url Manager (no need to go directly into the db).

I haven't had problems with the menu myself but it might be worth updating to the newest version and see if it goes away.

I'm getting very close to making a new release, but if you're working with custom code and comfortable building and deploying from source code there is no need to wait for a release, just get the latest from svn branches/2.x

Hope it helps,

Joe

5/21/2007 8:23:24 AM
Gravatar
Total Posts 488

Re: Preventing custom pages creating friendly URLs

In the previous release, you can just go to url manager and delete the automatically created friendly url.

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