diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 9b0559c8e..ec03b91f1 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -7,6 +7,7 @@ - fixed #10336: postReceivedTemplateId not corrected in upgrade_7.6.0-7.6.1 (Jukka Raimovaara / Axxion Oy) - fixed: Crud handling of Form fields with database types that cannot have default values. - fixed: Crud serialization. + - fixed: URLs that shouldn't happen (#10353) - fixed: i18n typo in Survey exit URL hover help. - fixed: Survey jump target and jump expression precedence order across Section, Question, Answer. diff --git a/lib/WebGUI/Asset.pm b/lib/WebGUI/Asset.pm index a58a45336..7385d9618 100644 --- a/lib/WebGUI/Asset.pm +++ b/lib/WebGUI/Asset.pm @@ -698,7 +698,7 @@ sub fixUrl { # check to see if the url already exists or not, and increment it if it does if ($self->urlExists($self->session, $url, {assetId=>$self->getId})) { my @parts = split(/\./,$url); - if ($parts[0] =~ /(.*)(\d+$)/) { + if ($parts[0] =~ /(.*?)(\d+$)/) { $parts[0] = $1.($2+1); } else {