Menu icons rendering with incorrect domain
-
Problem description
We have a website that we are running with the Avada theme. We have two sites that we cycle between, but this site has been run under separate domains in the past. This site makes heavy use of the menu system. The menu system uses includes icons.
From everything I’ve read, if we migrate this site to another instance, the paths of the icons should not matter, and should not be affected by the domain in which the icon was created.
For some reason, the origin domain is present when the icons are rendered on our website. This is going to cause problems as these websites are going to be dismantled soon.
To make this more clear, here is what has happened:
A staging site was created called old-revision.website.com
- Menu icons were created
- The paths of the icons were rendered like old-revision.website.com/path/to/icon
Then, the site was migrated to a new domain: staging.website.com
- The previously created icons were now rendered as: old-revision.website.com/path/to/icon
- New menu icons were created
- The paths for the new icons were rendered like staging.website.com/path/to/icon
Then, the website was migrated to: https://www.website.com
- The first round icons are rendered as: old-revision.website.com/path/to/icon
- The second round icons are rendered as: staging.website.com/path/to/icon
- Any new icons created are rendered as: https://www.website.com/path/to/icon
We are about to dismantle old-revision.website.com and staging.website.com/path/to/icon, but this will break the current site, as the icons will not render.
Looking at the source code, the rendering of the icons should not know about the domain. The icon should know about its path only.
Where can I start looking to solve this problem?
Any help is fully appreciated.
Thanks!
The page I need help with: [log in to see the link]
- The topic ‘Menu icons rendering with incorrect domain’ is closed to new replies.