eZ Community » Forums » Developer » wrong behavior of eZURI:transformURI...
expandshrink

wrong behavior of eZURI:transformURI in REST API

wrong behavior of eZURI:transformURI in REST API

Thursday 14 June 2012 2:18:12 am - 1 reply

When the eZURI::transformURI() method is used in the controller of the REST API, it behaves diferently than when used in a module. Consider this code:

$Url = 'content/view/full/2';
eZURI::transformURI( $Url )

When it's used in eZP module (let's say in admin interface) in the end the $Url variable is:

 /mysite/administration/content/view/full/2

But when it's used in REST API conroller, in the end the $Url variable gets to be:

 /content/view/full/2

The same thing occus when accessing URLs from the var folder (like stored images).

 

Is this a bug or intended behavior?

Modified on Thursday 14 June 2012 2:18:33 am by Mavko Žmak

Friday 29 June 2012 12:19:53 pm

Could anyone comment on this one?

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu