Skip to content
Snippets Groups Projects
Commit 272ad1bb authored by mechtelm's avatar mechtelm
Browse files

bugfix generating alias not url proof #51

parent e733b462
No related branches found
No related tags found
No related merge requests found
...@@ -128,7 +128,7 @@ export class TestControllerComponent implements OnInit, OnDestroy { ...@@ -128,7 +128,7 @@ export class TestControllerComponent implements OnInit, OnDestroy {
let myUnitAliasClear = myUnitAlias; let myUnitAliasClear = myUnitAlias;
let unitIdSuffix = 1; let unitIdSuffix = 1;
while (this.allUnitIds.indexOf(myUnitAliasClear) > -1) { while (this.allUnitIds.indexOf(myUnitAliasClear) > -1) {
myUnitAliasClear = myUnitAlias + '%' + unitIdSuffix.toString(); myUnitAliasClear = myUnitAlias + '-' + unitIdSuffix.toString();
unitIdSuffix += 1; unitIdSuffix += 1;
} }
this.allUnitIds.push(myUnitAliasClear); this.allUnitIds.push(myUnitAliasClear);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment