Hi

In 4.4+ use MgnlContext.getAggregationState().getMainContent().getHandle() to 
get "/site/index".
Use content.getNodeData("type").getString() to get "pdf" of "doc" or similar.

I don't think it's a bug.

Regards
Attila


-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Thomas Martin
Sent: 2011. augusztus 28. 21:24
To: Magnolia User-List
Subject: [magnolia-user] 
MgnlContext.getAggregationState().getOriginalBrowserURL() - broken?


Dear Magnolians 

In earlier versions (checked in 4.3.1) calling 
MgnlContext.getAggregationState().getOriginalBrowserURL() would return me 
something like http://localhost:8080/site/index.html
Doing the same in never versions (checked in 4.4.4) I will get 
http://localhost:8080/site/templates/pages/main.jsp which isn't quite useful.

Same applies to .getExtension() (returns .jsp) and .getOriginalURL() and so on.

Is this a bug? Should I file it as such?
And if I'm missing something could someone get me a pointer as to how I'd get 
again the called URL?

Any help appreciated!
Best regards, Thomas






----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to