Hi Attila Thanks for your input. I still fail to see how I'd get the extension of the currently called URL.
Let's say I address http://localhost:8080/site/index.html - how would I retrieve ".html"? And since the behavior used to be different in earlier versions I'm still intrigued to view it as a bug. At least the naming of getOriginalBrowserURL would, if not considered a bug, be quite misleading. best regards, Thomas On 29.08.2011, at 06:45, JAKABFI Attila wrote: > > 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]> > ---------------------------------------------------------------- > ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
