Hi Joe, Your question is a bit confusing --> I don't think what you want is possible, or else I have misunderstood what you are trying to do...
On the server side, the only way to "change the URL" is by sending the client back a "redirect" response. This tells the client browser to go to the other URL instead of the original one. It would be possible to redirect from a plain URL to an URL with get-style parameters. On the client side, you change the URL by sending a request. When the response is returned from the server the client browser changes the address bar to reflect the new location. You can't change the scheme, host, path or parameters of the URL in the address-bar. Doing so would make no sense anyway, since the address-bar shows the address of the last request, and changing it without sending a new request makes no sense. However, you can change the fragment portion of the URL on the client side. This part of the URL is never sent to the server though, so that probably isn't what you want. Maybe what you are looking for is more the ability to change the way links are generated in magnolia? That would let you change the links generated in your pages, so that when the user clicks on a certain link the parameters you want are already there. To do this, take a look at the LinkTransformerManager class and subclasses. You can configure your own implementation under config --> /server/rendering/linkManagement Regards from Vienna, Richard -----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von Joe JAIT (via Magnolia Forums) Gesendet: Donnerstag, 07. Februar 2013 20:16 An: Magnolia User List Betreff: [magnolia-user] Change URL Hello, Is there a way to add parameters at the end of the URL of the current page, either through Freemarker in the template, or through Java code? e.g.: if the current page is MagnoliaInstance.mypage.com and the user adds some value in the property tab, then the URL becomes: MagnoliaInstance.mypage.com?param=value In general, how can I change the current URL? Thanks in advance. Joe -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=181de312-af50-41b3-9507-9eb631ead0ee ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ---------------------------------------------------------------- ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
