Jenkins is using a wrong GitHub repository instead of the one defined in the pipeline

We had a pipeline in a GitHub free repository.
Once checked that it is working as expected we are moving the repo to a GH Enterprise org.
The problem is that, even when in the new pipeline configuration we only use the URL for the new Enterprise repo, in the log we can see that, during the pipeline initiation, the URL for the free repo is also shown:

The main problem is that during the pipeline’s execution, the pipeline´s main Jenkins file is used (as shown in the second line of the screenshot), but the submodule files called from that main file are retrieved from the Free repo instead of from the Enterprise one.
I don´t know why the Free repo URL is used in the pipeline, as that URL is not defined anywhere in the Pipeline configuration.
There are just two places in the Pipeline configuration when the repo URL is used: GitHub project, and Repository URL, and both are using the Enterprise repo URL. Also, the Credentials used are for the Enterprise repo.
What is wrong here and why it is using a URL that is not defined in the pipeline?

It looks as if you’re making use of a shared pipeline library named JenkinsShared. Those libraries are configured under Manage Jenkins → System
Have you adjusted the urls there as well?

Thank you so much Markus,

That was the reason.
As I configured the shared library a long time ago, I forgot that part and thought it should use the folder in the current pipeline´s repo, instead of being defined in that way.

Regards,
Javier Carvajal