So a little background. I have my WordPress development site backed up on a remote git repository. I added a ignore file to ignore specific files so that if the repository is cloned the site has to be set up like any other fresh WordPress site.
After creating a new clone on my local machine I exported all content from my live development site using WordPress build in exporter and than imported that into my local install.
That worked all fine, the content is there, but if I click on a post their url is not pointing my localhost as the domain name, but the domain name of the live development site.
The url in WordPress setting page are all correct. Can it be that the Wordpress export file added the domain to the posts? I just don't understand how this could happen. Anybody that recognizes this issue and know how to avoid it?