Hi Martin,
Thanks for your question.
In AtoM 2.4 there is an option to
use the Reference code as the basis for slug generation, but you are correct in noting that it's currently pretty restrictive - at the moment, slugs in AtoM will only allow lowercase alphabetic characters, digits, and dashes. Anything else (such as spaces, special characters, etc) is converted to lowercase or dash, or stripped from the resulting slug.
I will have to ask my team as to whether they anticipate any issues with changing these restrictions to allow a) capitalization and b) other characters.
One consequence of allowing capitalization might be that you'd end up having more near-identical URLs - for instances, the following could all lead to different pages (but be easily mixed up by users):
This isn't necessarily a problem, but it might be undesirable to some users. Because of this, I think if we did change the restrictiveness of slug generation, then adding a configurable setting (so users have some control over the feature) would probably be the way to go.
Adding such an enhancement would probably require community support for us to be able to take on. Note that I've made a long post recently in response to some questions as to how we handle feature-based pull requests here:
As to the issue with slug generation you've encountered:
- Is the default installation culture of your site Swedish?
- Are the descriptions created in the Swedish interface as well?
- Do the descriptions in question have translations (e.g. English, etc)?
- Are your descriptions generally created via the user interface, or imported somehow (or is it a mix of both)?
I'm wondering if this is potentially a culture fallback issue - if for example, the feature is looking for the reference code/identifiers in the English i18n settings, and when it doesn't find them, is falling back to the title. One way we could test this theory is to try flipping the user interface to English, and adding data there, and seeing if the slug task behaves the same or not.
I will try to reproduce this issue locally. Thanks for the report.
Regards,