Closed (works as designed)
Project:
Simple XML sitemap
Version:
4.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
23 Dec 2024 at 15:30 UTC
Updated:
26 Mar 2025 at 10:38 UTC
Jump to comment: Most recent
Comments
Comment #2
walkingdexter commentedNeed more information about the use case. Why can't this be solved with the "Excluded languages" setting?
Comment #3
jérôme dehorterHi @walkingdexter,
By selecting Excluded languages settings, all urls as well as alternate urls are deleted.
In our use, the French language is main and we have pages translated into English and it is not possible to have English pages alone.
Our client therefore asked us to keep the alternate urls for the links with the translated pages but does not wish to keep the urls of the English pages.
Comment #4
walkingdexter commentedThanks for the clarification. This seems to be a very specific use case. If I understand correctly, the problem can be solved with a few lines of code using
hook_simple_sitemap_links_alter(). Is this true?Comment #5
gbyteClosing as per lack of activity.