U4-840 - MetaWeblog API dosen't return full url in getUsersBlogs

Created by Markus Johansson 12 Sep 2012, 08:08:42 Updated by Sebastiaan Janssen 17 Sep 2012, 07:15:07

Subtask of: U4-760

Some blogwriters (ie. LiveWriter) requires the full blog url from getUsersBlogs. The current implementation uses the server variable server_name which only returns this:

yadadomain.com

Simple solution to the problem would be to return the following:

http://www.yadadomain.com

If the port is not 80 (or ssl) 443:

http://www.yadadomain.com:5555

Where 5555 is the port that is used.

Comments

Richard Terris 12 Sep 2012, 10:12:22

wouldn't string CurrentURL = System.Web.HttpContext.Current.Request.Url; work?


Markus Johansson 12 Sep 2012, 16:09:48

Hi! Both yes and no, the code is using library.GetNiceUrl to get the url for the current node. We're talking about how to solve this here: http://umbraco.codeplex.com/SourceControl/network/forks/enkelmedia/umbracoMetaApiUrl/contribution/3372


Sebastiaan Janssen 16 Sep 2012, 11:57:27

Fixed in changeset ac0e1fc60705


Priority: Minor

Type: Bug

State: Fixed

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted: Pull request

Affected versions:

Due in version: 4.10.0

Sprint:

Story Points:

Cycle: