{"action":"created","issue":{"url":"https://api.github.com/repos/rainlab/translate-plugin/issues/286","repository_url":"https://api.github.com/repos/rainlab/translate-plugin","labels_url":"https://api.github.com/repos/rainlab/translate-plugin/issues/286/labels{/name}","comments_url":"https://api.github.com/repos/rainlab/translate-plugin/issues/286/comments","events_url":"https://api.github.com/repos/rainlab/translate-plugin/issues/286/events","html_url":"https://github.com/rainlab/translate-plugin/issues/286","id":248073995,"number":286,"title":"Bug with Static page URL's","user":{"login":"canthis","id":644543,"avatar_url":"https://avatars3.githubusercontent.com/u/644543?v=4","gravatar_id":"","url":"https://api.github.com/users/canthis","html_url":"https://github.com/canthis","followers_url":"https://api.github.com/users/canthis/followers","following_url":"https://api.github.com/users/canthis/following{/other_user}","gists_url":"https://api.github.com/users/canthis/gists{/gist_id}","starred_url":"https://api.github.com/users/canthis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/canthis/subscriptions","organizations_url":"https://api.github.com/users/canthis/orgs","repos_url":"https://api.github.com/users/canthis/repos","events_url":"https://api.github.com/users/canthis/events{/privacy}","received_events_url":"https://api.github.com/users/canthis/received_events","type":"User","site_admin":false},"labels":[{"id":409090976,"url":"https://api.github.com/repos/rainlab/translate-plugin/labels/Status:%20Review%20Needed","name":"Status: Review Needed","color":"FBCA04","default":false},{"id":409090986,"url":"https://api.github.com/repos/rainlab/translate-plugin/labels/Type:%20Bug","name":"Type: Bug","color":"E11D21","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2017-08-04T17:51:16Z","updated_at":"2018-03-20T08:56:04Z","closed_at":"2017-11-02T16:42:26Z","author_association":"NONE","body":"##### Expected behavior\r\nMultilingual Static page URL's should be generated uniquely based on page title locales being entered.\r\n\r\n##### Actual behavior\r\nEntering page title for another language makes URL the same for all locales so User is now forced to manually enter/edit page URL's for each locale and this could be a pain if there's more than 5 languages and especially for non dev user.\r\n\r\n##### Reproduce steps\r\n[https://youtu.be/jpcnVAu6STM](https://youtu.be/jpcnVAu6STM)\r\n\r\nLet's assume we have 2 or more languages: EN(default) and RU\r\n1. Add static page\r\n2. Enter page title for EN, for example - \"Contacts\"\r\n3. Page URL for all the locales are now - \"/contacts\"\r\n4. Switch to another language and type in page title, for example - \"Контакты\" \r\n5. Page URL's for all the languages are now - \"/kontakty\"\r\n---\r\nI will assume that this problem occurs because of all the Page URL hidden inputs are pointing to same Input.Preset field - `data-input-preset=\"[name=\"viewBag[title]\"]\"`\r\n```\r\n<input type=\"text\" name=\"viewBag[url]\" id=\"Form-formPaged41d8cd98f00b204e9800998ecf8427e5984ace7238a3-field-viewBag-url-placeholderField\" value=\"\" placeholder=\"/\" class=\"form-control\" autocomplete=\"off\" maxlength=\"255\" data-input-preset=\"[name=\"viewBag[title]\"]\" data-input-preset-type=\"url\" data-input-preset-closest-parent=\"form\" data-input-preset-prefix-input=\"input[data-parent-url]\">\r\n\r\n<button class=\"btn btn-default ml-btn\" data-toggle=\"dropdown\" data-active-locale=\"\" type=\"button\">en</button>\r\n\r\n<!-- Individual values -->\r\n<input type=\"hidden\" name=\"RLTranslate[lv][viewBag][url]\" value=\"/aaa\" data-locale-value=\"lv\" data-input-preset=\"[name=\"viewBag[title]\"]\" data-input-preset-type=\"url\" data-input-preset-closest-parent=\"form\" data-input-preset-prefix-input=\"input[data-parent-url]\">\r\n<input type=\"hidden\" name=\"RLTranslate[ru][viewBag][url]\" value=\"/aaa\" data-locale-value=\"ru\" data-input-preset=\"[name=\"viewBag[title]\"]\" data-input-preset-type=\"url\" data-input-preset-closest-parent=\"form\" data-input-preset-prefix-input=\"input[data-parent-url]\">\r\n<input type=\"hidden\" name=\"RLTranslate[en][viewBag][url]\" value=\"/aaa\" data-locale-value=\"en\" data-input-preset=\"[name=\"viewBag[title]\"]\" data-input-preset-type=\"url\" data-input-preset-closest-parent=\"form\" data-input-preset-prefix-input=\"input[data-parent-url]\">\r\n```\r\n\r\n##### October build\r\n420 (Same behavior is on build 419)\r\n"},"comment":{"url":"https://api.github.com/repos/rainlab/translate-plugin/issues/comments/374520863","html_url":"https://github.com/rainlab/translate-plugin/issues/286#issuecomment-374520863","issue_url":"https://api.github.com/repos/rainlab/translate-plugin/issues/286","id":374520863,"user":{"login":"iboved","id":9253603,"avatar_url":"https://avatars1.githubusercontent.com/u/9253603?v=4","gravatar_id":"","url":"https://api.github.com/users/iboved","html_url":"https://github.com/iboved","followers_url":"https://api.github.com/users/iboved/followers","following_url":"https://api.github.com/users/iboved/following{/other_user}","gists_url":"https://api.github.com/users/iboved/gists{/gist_id}","starred_url":"https://api.github.com/users/iboved/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iboved/subscriptions","organizations_url":"https://api.github.com/users/iboved/orgs","repos_url":"https://api.github.com/users/iboved/repos","events_url":"https://api.github.com/users/iboved/events{/privacy}","received_events_url":"https://api.github.com/users/iboved/received_events","type":"User","site_admin":false},"created_at":"2018-03-20T08:56:04Z","updated_at":"2018-03-20T08:56:04Z","author_association":"NONE","body":"I have the same problem.\r\nThe reason is all the Page URL hidden inputs are pointing to same Input.Preset field:\r\n\r\n`data-input-preset=\"[name=\"viewBag[title]\"]\"`\r\n\r\nAll fields are generated from the \"Title\" field."}}
{"actor":{"display_login":"iboved"}}