Hello Community,
the URLs (actually, the query strings) of CMSimple_XH pages can contain useless occurrences of the word_separator (current default is -). Consider the page "This - That", which has the URL ?This---That. Due to respective urichar_org/new settings, this could get even messier, for instance, "Run, run, run!" might result in ?Run--run--run-. I suggest that we collapse multiple and also trim trailing and leading occurrences of the word_separator, so the URLs would be ?This-That resp. ?run-run-run. This might lead to duplicate URLs in rare cases, but these would be pointed out by CMSimple_XH anyway ("DUPLICATE HEADING").
As this would break existing bookmarks and other deep links, we should prominently announce that change in the changelog.
Of course, users could already use respective urichar_org/new settings to get around all of this issues (e.g. " - " -> "-", "? " -> "-"), but it seems to me my suggestion would make the handling a little bit simpler and cleaner.
BTW: we should revise the page headings of the default content, so that they result in cleaner URLs (?Templates-%26amp%3B-Plugins is really awkward). Maybe we also should deliver some sensible defaults for urichar_org/new wrt. punctuation and for German, umlauts).
Thoughts?
Simplify page URLs wrt. word_separator
Simplify page URLs wrt. word_separator
Christoph M. Becker – Plugins for CMSimple_XH
Re: Simplify page URLs wrt. word_separator
I propose this patch. Besides trimming of superfluous word_separators, it replaces "&" with "and" in the default content, and it adds urichar_org/new settings to replace German umlauts in de.php.
Christoph M. Becker – Plugins for CMSimple_XH
Re: Simplify page URLs wrt. word_separator
My concern is that this very nice setting won't arrive at the user's sites through our standard update files... Ok, that's another subject.
Re: Simplify page URLs wrt. word_separator
Well, I'm pretty sure that CMSimple_XH 1.7 will require a migration (similar to 1.5 and 1.6), so this shouldn't be an issue.svasti wrote:My concern is that this very nice setting won't arrive at the user's sites through our standard update files...
Christoph M. Becker – Plugins for CMSimple_XH
Re: Simplify page URLs wrt. word_separator
Done (r1559).
Christoph M. Becker – Plugins for CMSimple_XH