External empty links in sitemap break the whole international site structure
Permalink Browser Info Environment
We have used empty external (href=”#”) links in our sitemap in order to group pages together in categories to enable drop-down of them in the site navigation when you hovered over the link. This enabled us to maintain proper seo structure of the site, i.e. home (tier1) –> sub page (tier2) –> sub sub page (tier3) and group pages together for visual representation to the users in the site navigation. The external link was not seen as a page.
This worked perfectly when our site was monolingual, i.e. the empty external link was ignored in the sitemap.
We have recently added two extra languages using the international language module (see screenshots). The structure of the site is:
Home
-/us/external link/sub pages
-/us/contact-us
-/de/external link/sub pages
-/de/contact-us
-/fr/external link/sub pages
-/fr/contact-us
Unfortunately, the empty external links mess up the site structure. Pages not grouped under external links are not affected though.
Sitemap structure:
mysite.com/us/external-link/sub-page
mysite.com/us/contact-us
mysite.com/de/external-link/sub-page
mysite.com/de/contact-us
mysite.com/fr/external-link/sub-page
mysite.com/fr/contact-us
Becomes:
mysite.com/sub-page
mysite.com/us/contact-us
mysite.com/sub-page1
mysite.com/de/contact-us
mysite.com/sub-page2
mysite.com/fr/contact-us
The language locale is drop from the path and same sub pages get sequence numbers added to their path.
This worked perfectly when our site was monolingual, i.e. the empty external link was ignored in the sitemap.
We have recently added two extra languages using the international language module (see screenshots). The structure of the site is:
Home
-/us/external link/sub pages
-/us/contact-us
-/de/external link/sub pages
-/de/contact-us
-/fr/external link/sub pages
-/fr/contact-us
Unfortunately, the empty external links mess up the site structure. Pages not grouped under external links are not affected though.
Sitemap structure:
mysite.com/us/external-link/sub-page
mysite.com/us/contact-us
mysite.com/de/external-link/sub-page
mysite.com/de/contact-us
mysite.com/fr/external-link/sub-page
mysite.com/fr/contact-us
Becomes:
mysite.com/sub-page
mysite.com/us/contact-us
mysite.com/sub-page1
mysite.com/de/contact-us
mysite.com/sub-page2
mysite.com/fr/contact-us
The language locale is drop from the path and same sub pages get sequence numbers added to their path.
Type: | Discussion |
---|---|
Status: | Resolved |
In general, external links are not meant to have sub-pages beneath them. They can behave unpredictably in certain contexts. It would be better to create real pages instead of external pages, and make them of a certain page type, and use a custom navigation that replaces the link to pages of those type with a "#" link, rather than using external links.