-
-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Link to the current page doesn't contain all URL parameters #323
Comments
I mean, the documentation says |
Yes, but human language is not a programming language with short-circuit evaluation. I have a black and white pencil and I say you: Choose black pencil or white pencil. Do I mean that you can't choose white pencil? However, It is still quite unexpected and vulnerable to easily broke the application. |
Do you have any suggestions on how to improve the documentation text? |
I see that you are refusing to even consider or discuss that the code itself could be potentially improved and help developers to make less mistakes and keep their code simpler. Documentation proposal:
In Czech:
|
I'm certainly not opposed to improvements, but I can't immediately think of a better way to do it, and at the same time, you're the first person in 15 years to deal with this, so I'm not seeing it as a priority. Even in light of the fact that I don't want to make BC breaks. |
I understand such a change would be BC break and the priority is low. I also understand that creating unified signature for both What I do right now, is keeping parameters in both methods identical. Together with warning in comment to remind me that I have to keep parameters always the same. To be honest, after years of development in Nette, I'm quite tired of doing it this way. In one case, I have 10 parameters in Another solution is to write all parameters in template explicitly like this: <a n:href="this param1 => true, param2 => true">refresh</a> Not cool. In this approach I have to think about it in every single usage. So let me propose another solution. I can imagine the setting that will control parameters rendering (in a similar way how
|
Main problem here is that actionX does not always continue renderX. Rendering view X by renderX after actionX is default but actionX can freely choose what view it will render. |
Version: 3.1.14 and probably all older
Bug Description
From the documentation:
This is not true if a presenter contains both
render<View>()
andaction<Action>()
methods with different parameters.Steps To Reproduce
Presenter:
Template:
Web URL: https://www.someurl.com/?param=test
Now, generated link contains URL without parameter: https://www.someurl.com/
Expected Behavior
All parameters from both
render*
andaction*
methods should be transferred.Current behavior is at least confusing and may led to broken service if somebody forget to keep exactly the same parameters in both methods.
The text was updated successfully, but these errors were encountered: