LinkGenerator and persistent parameters

Notice: This thread is very old.
lutor
Member | 27
+
0
-

Hi,
I have recently noticed, that LinkGenerator does not preserve persistent parameters when generating links, which I thought he is doing – $refUrl entering into the process of routing contains persistent parameters, but during constructing url they disappear.

Is this expected behaviour? I do understand, that LinkGenerator is typically used for generating link in email etc. where you typically don't want to pass current state of components, but in some cases I would like to have such behaviour – generate with keeping persistent parameters.

Thanks.

Jan Tvrdík
Nette guru | 2595
+
+2
-

Is this expected behaviour?

Yes.

Filip Procházka
Moderator | 4668
+
+3
-

@lutor the LinkGenerator is meant to be completely independent of presenters.