URL is manipulated and do not work?

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.
10/29/2013 2:48:54 AM
Gravatar
Total Posts 83

URL is manipulated and do not work?

Hi,

We are using mojoPortal 2.3.4.7 MySQL and have a problem with the Html Content.

This Html Content is used as a news flow that only contains a title and no body. It is possible to set teh link that the title goes to when creating the post but it manipulate the URL?

If I add this url : ~/​SharedFiles/Download.aspx?pageid=8&fileid=1294&mid=17 it will be translated on save to this : ~/SharedFiles/Download.aspxpageid=8-fileid=1294-mid=17.

This url will not work so how am is this supose to work?

What I try do do is link the post to a file in the download section.

BestRegards

10/29/2013 12:40:03 PM
Gravatar
Total Posts 2253

Re: URL is manipulated and do not work?

Hi,

Are you sure you are using mojoPortal 2.3.4.7? There was never a formal release of that version.

I'm not sure what you're asking but I think you are saying that the link is malformed after saving the HTML content. First, the link you are suggesting that you added is not correct. You can't use the "~/" syntax in HTML. Your link should be "/SharedFiles/Download.aspx?pageid=8&fileid=1294&mid=17" which should work just fine.

HTH,
Joe D.

10/31/2013 5:55:54 AM
Gravatar
Total Posts 83

Re: URL is manipulated and do not work?

Hi,

System information sais this : 

MojoPortal Version2.3.4.7 MySQL 
Operating SystemMicrosoft Windows NT 6.0.6002 Service Pack 2 
ASP.NET Versionv4.0.30319 Running in Full Trust 
Server Time ZoneW. Europe Standard Time
Server Local Time(GMT 1) 10/31/2013 11:54:25 AM
Greenwich Mean Time (GMT/UTC)10/31/2013 10:54:25 AM

Feuture is set to Html Content. This feuture got the following actions direcly on the control : Settings, Add Post, Edit Categories. When choose Add Post I get a screen where I can input Title and RichText. There is also a URL, "Enter a Location to Show a Google Map, Categories, Include in Feed, Is Published, Start Date and allow comments for ... days.

The URL will be used when clicking the title text later on. The problem is that Url demands a ~/ adress and when adding the correct URL : ~/​SharedFiles/Download.aspx?pageid=8&fileid=1294&mid=17 it will be translated on save to this : ~/SharedFiles/Download.aspxpageid=8-fileid=1294-mid=17.

So it removes the "?" and "&" is replaced with a -?

 

 

11/15/2013 4:02:28 AM
Gravatar
Total Posts 83

Re: URL is manipulated and do not work?

I have now updated to mojoPortal 2.3.9.9 MySQL but this problem remains.

Say that I add the blog control on a page, when creating the blog post there is a Url to set. I need to set this so when clocking the link it will start downloading a file from the file share.

The link to the file might look like this : http://MyWebpage.se/SharedFiles/Download.aspx?pageid=3&mid=5&fileid=1370 and the url field demands a /~ url.

So I enter the url : ~/SharedFiles/Download.aspx?pageid=3&mid=5&fileid=1370 and then save. When clicking this blog title link I will however be redirected to : http://MyWebpage.se/SharedFiles/Download.aspxpageid=3-mid=5-fileid=1370

You can see that it have removed the ? and replaced the & with -

The result is a 404 error.

 

 

11/15/2013 7:14:25 AM
Gravatar
Total Posts 18439

Re: URL is manipulated and do not work?

Sorry but that is a strange usage scenario. Neither the blog nor the shared files was designed for that kind of scenario.

11/15/2013 7:21:29 AM
Gravatar
Total Posts 83

Re: URL is manipulated and do not work?

I understand that, but I'm not clear on why the url field manipulates the value.

In our case the blog is more used as a news wall where it only gets a title and no body. In this case it would be great if the title could take the user direcly to the title link(in this case to a new release of a software version).

I do understand that it is not thougt to be used in this way but when the need is, you have to try right :)

11/15/2013 7:30:19 AM
Gravatar
Total Posts 18439

Re: URL is manipulated and do not work?

the blog post url is never going to work for a file download. The friendly url entered there maps to the real url /Blog/ViewPost.aspx?pageid=x&mid=y&ItemID=z which is the real url that serves the request for the bog post detail.

you can put a link to a file in the blog post but you cannot use the blog post url for something else.

 

11/15/2013 7:33:18 AM
Gravatar
Total Posts 83

Re: URL is manipulated and do not work?

Understand, thanks.

11/15/2013 7:34:50 AM
Gravatar
Total Posts 18439

Re: URL is manipulated and do not work?

instead of using the blog you could create an xml file in rss feed format with urls that go directly to the file and then you could use the url for the xml file as a feed in feed manager

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