Hi Niels,
I've not had a chance to test this, but here's the theory.
a) you're making the connection early - in ProcessLink before parent call. Good.
By this stage the page "about to be served" is stored in 2 properties.
self.RequestFileName and
self.pagename
the one includes the path, the other not. ie
self.pagename = self.GetPageName(Self.RequestFileName)
So you can change the contents of self.RequestFileName
then call
self.pagename = self.GetPageName(Self.RequestFileName)
self.RequestFileName as I said contains the path and the filename.
So if you have an alternate procedure name, or static htm file, then use the
web folder path. eg
self.RequestFileName = clip(self.site.WebFolderPath) & '\heydude.htm'
self.pagename = self.GetPageName(Self.RequestFileName)
Cheers
Bruce