On 27 October 2010 16:58, Norbert Hartl <norbert(a)hartl.name> wrote:
I have a command that is a quick command and on
execute time I do something like
thisStructure := self context structure.
parentStructure := thisStructure parent.
self answer: (self context structure: parentStructure)
First of all: Commands are supposed to change something in the model,
they are supposed to be persistent and recorded in the history. Pure
navigation should be done with (value-)links.
The context then contains the right structure
(parentStructure) but the url line in the browser still tells the url of thisStructure.
The only thing I could confirm is that this doen't happen if isQuick is false. Then
the url is updated correctly.
The URL of a command is RESTful and points to where the command is
supposed to be executed. For quick commands that do not show an UI a
redirect would be necessary to update the URL after execution.
Lukas
--
Lukas Renggli
www.lukas-renggli.ch