When working on the test/staging site for testing purposes, clicking on certain links results in the user being redirected back to the production site.
There are two potential reasons for this occurrence:
- The hyperlinks in the content pages were created with absolute URLs rather than relative URLs.
- The environment settings have not been adjusted for the staging server's domain and are using the production server's paths.
In the case of the hyperlinks in content pages (content made with the WYSIWYG Editor), this can be resolved by removing the domain portions of the URL.