Answer the question
In order to leave comments, you need to log in
Is it possible to remove a parameter from Url?
I make a link
Html::a(Yii::t('app', 'goto'), ['/url', 'id' => $id])->menu_id], ['class' => 'btn btn-primary', 'data-pjax' => 0])
Accordingly
, I get to the page with the get-parameter url?
parameter?
Answer the question
In order to leave comments, you need to log in
If your id was static (not changeable), then your task could be solved using the rules of the url manager. But taking into account the fact that the id can change, the url manager will not help you in any way, it can remove the id from the link, but when you go to it, you will not be able to get the get-parameter, because it simply will not be on the client side. Accordingly, you need to use POST as Arik said , or even abandon the idea of \u200b\u200bhiding the parameter
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question