- Issue created by @coaston
- Status changed to Closed: works as designed
about 1 year ago 6:27am 24 August 2023 - π¦πΊAustralia mingsong π¦πΊ
This is not a bug as it works as designed.
I am not familiar with rename admin paths module, but the all the routes created by Entity Reference Tree Widget module are defined in
https://git.drupalcode.org/project/entity_reference_tree/-/blob/2.2.0/en...
Nothing hardcoded and you should raise your question about your custom path to rename_admin_paths module. There is nothing to do with a custom path here, as this module doesn't provide this functionality.
- Status changed to Active
about 1 year ago 9:21am 24 August 2023 - πΈπ°Slovakia coaston
First of all, thank you for your answer. However you are not right I guess.
Rename admin module has following description :
If another module is no longer functional after this module is enabled this usually means that the other module uses hard coded paths instead of paths generated by the router with a route name. This is not something that can and should by fixed by this module.
The same question was raised for a different module here 3349859 π Cannot save model when module rename_admin_paths is active Fixed and maitanier was able to provide quick fix, even they are using the same approach with /admin but fix here :wrong-url looks quite easy.
Hence I am asking you to double check and possible do the similiar path here to make this module compatible.
Thank you for your understaning.
- Status changed to Closed: works as designed
about 1 year ago 9:36am 24 August 2023 - πΈπ°Slovakia coaston
Well, looks like you gave up, but still thanks for your time.
Not sure how to explain it more that this needs to be fixed in this module to make it compatible. So far it works with all contributed modules, except this one, so this is also trigger that any config is not right there.Now I need to decide whenewer to disable this awesome module ,or another admin one, which is also awesome.
However, good work - this module is powerful!
- π¦πΊAustralia mingsong π¦πΊ
First of all, my module is not responsible for the functionality provided by other modules. In this case, a custom path feature is not my module is responsibility.
Secondly, I have already pointed to where exactly the path you mentioned is created. If you don't even give a look at what I said, then constantly said it is 'Hard Coded' without any evidence. That is unacceptable.
Here is the code snippets that creates the path.
path: '/admin/entity_reference_tree/json/{entity_type}/{bundles}'
And spend some time to learn the Drupal routing system ( https://www.drupal.org/docs/drupal-apis/routing-system/structure-of-routes β ), if you don't know what the above codes mean. You should learn it first, then tell others what is 'Hard Coded'.
I close this again as the module works as design. You open it for three times, I will report you as spam.
- Status changed to Fixed
about 1 year ago 12:39pm 24 August 2023 Automatically closed - issue fixed for 2 weeks with no activity.