And what about that:
"Normally when a request comes in without a _k, the current session
will be invoked to create a new render loop main, which will be
invoked to create a new instance of your root component and render it.
I want to avoid this--though this part isn't strictly necessary if
you're OK with each request creating a new instance of your root--and
keep the existing instance of the root component as well as parse the
URL to decide what component should be loaded as the current body..."?
From the same Ramon's article.
Daniel.
2009/7/1 Nicolas Roard <nicolas.roard(a)gmail.com>om>:
Hi,
One of the thing I'm missing with Pier is "clean urls" -- without the
session stuff.
I played with the code a bit, followed advices from
http://onsmalltalk.com/clean-urls-in-seaside to get rid of _s, and
then modifyed the visitInternalLink in PRReferenceRenderer so that
links do not include _k. I simply do something like that:
anchor url: 'http://localhost:8080/seaside/pier', aLink reference
which sets the url fully, and apparently everything seems to work as
hoped -- links indicated in pier are now fully formed and without _s
and _k, while dynamically generated links still work so for example I
can still log in and edit pages as usual... but in "normal viewing
mode" I get clean urls.
My question is, am I breaking something I'm not seeing (as apparently
things works as I want) by doing that ? is that the correct way to do
it ?
thanks,
--
Nicolas Roard
"I love deadlines. I like the whooshing sound
they make as they fly by." -- Douglas Adams
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki