{"action":"created","comment":{"url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/pulls/comments/29114630","id":29114630,"diff_hunk":"@@ -0,0 +1,110 @@\n+Routing\n+=======\n+\n+Base URL\n+--------\n+\n+In Open Orchestra, the base url of a website is composed by the domain and eventually a language prefix.\n+To manage all possibilities, Open Orchestra associate each website in the database with website aliases which contain:\n+\n+* **domain**: domain name\n+* **language prefix**: used by Open Orchestra to define the language\n+* **scheme** : to choose with which protocol page can be accessed\n+\n+Here is an example of some base URL generated for a website associate to two domains: ``dev.example.com`` and ``test.example.com``.\n+Each of them, with english as default language and french as secondary one.\n+\n++----------+--------+------------------+----------+-----------------+-----------------------------+\n+| Alias Id | Scheme | Domain           | Language | Language prefix | Base URL                    |\n++==========+========+==================+==========+=================+=============================+\n+| 0        | http   | dev.example.com  | fr       | fr              | http://dev.example.com/fr   |\n++----------+--------+------------------+----------+-----------------+-----------------------------+\n+| 1        | http   | dev.example.com  | en       | none            | http://dev.example.com      |\n++----------+--------+------------------+----------+-----------------+-----------------------------+\n+| 2        | http   | test.example.com | fr       | fr              | http://test.example.com/fr  |\n++----------+--------+------------------+----------+-----------------+-----------------------------+\n+| 3        | https  | test.example.com | en       | none            | https://test.example.com    |\n++----------+--------+------------------+----------+-----------------+-----------------------------+\n+\n+\n+URL Pattern\n+-----------\n+\n+The url pattern is added to the ``base URL`` to generate the url.\n+For node, the url pattern can be choose by contributor or it is generated automatically from the page title.\n+\n+Url Pattern use Symfony rules :\n+\n+* Variables to exctract between {}, ex : `/exemple/{param}/test`\n+* Pattern have to be unique\n+\n+See ``Url pattern`` chapter from `Node Configuration`_ for more details.\n+\n+Redirection\n+-----------\n+\n+Open Orchestra allows user to determine redirection in the back office.\n+The redirection form contains some arguments:\n+\n+* **site name**: contextual site which trigger redirection\n+* **site language**: contextual language which trigger redirection","path":"en/developer_guide/routing.rst","position":50,"original_position":50,"commit_id":"4f8141ab6dcad69df6b1800ec43513f214af12c2","original_commit_id":"4f8141ab6dcad69df6b1800ec43513f214af12c2","user":{"login":"juchi","id":3333098,"avatar_url":"https://avatars.githubusercontent.com/u/3333098?v=3","gravatar_id":"","url":"https://api.github.com/users/juchi","html_url":"https://github.com/juchi","followers_url":"https://api.github.com/users/juchi/followers","following_url":"https://api.github.com/users/juchi/following{/other_user}","gists_url":"https://api.github.com/users/juchi/gists{/gist_id}","starred_url":"https://api.github.com/users/juchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juchi/subscriptions","organizations_url":"https://api.github.com/users/juchi/orgs","repos_url":"https://api.github.com/users/juchi/repos","events_url":"https://api.github.com/users/juchi/events{/privacy}","received_events_url":"https://api.github.com/users/juchi/received_events","type":"User","site_admin":false},"body":"idem","created_at":"2015-04-26T22:09:54Z","updated_at":"2015-04-26T22:09:54Z","html_url":"https://github.com/open-orchestra/open-orchestra-docs/pull/36#discussion_r29114630","pull_request_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/pulls/36","_links":{"self":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/pulls/comments/29114630"},"html":{"href":"https://github.com/open-orchestra/open-orchestra-docs/pull/36#discussion_r29114630"},"pull_request":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/pulls/36"}}},"pull_request":{"url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/pulls/36","id":33875317,"html_url":"https://github.com/open-orchestra/open-orchestra-docs/pull/36","diff_url":"https://github.com/open-orchestra/open-orchestra-docs/pull/36.diff","patch_url":"https://github.com/open-orchestra/open-orchestra-docs/pull/36.patch","issue_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/issues/36","number":36,"state":"open","locked":false,"title":"Routing documentation","user":{"login":"itkg-rboessel","id":11752276,"avatar_url":"https://avatars.githubusercontent.com/u/11752276?v=3","gravatar_id":"","url":"https://api.github.com/users/itkg-rboessel","html_url":"https://github.com/itkg-rboessel","followers_url":"https://api.github.com/users/itkg-rboessel/followers","following_url":"https://api.github.com/users/itkg-rboessel/following{/other_user}","gists_url":"https://api.github.com/users/itkg-rboessel/gists{/gist_id}","starred_url":"https://api.github.com/users/itkg-rboessel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itkg-rboessel/subscriptions","organizations_url":"https://api.github.com/users/itkg-rboessel/orgs","repos_url":"https://api.github.com/users/itkg-rboessel/repos","events_url":"https://api.github.com/users/itkg-rboessel/events{/privacy}","received_events_url":"https://api.github.com/users/itkg-rboessel/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-22T16:21:46Z","updated_at":"2015-04-26T22:09:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"51aa2a7b64d62ee818e677e09b23c7c44796ed63","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/pulls/36/commits","review_comments_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/pulls/36/comments","review_comment_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/issues/36/comments","statuses_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/statuses/4f8141ab6dcad69df6b1800ec43513f214af12c2","head":{"label":"open-orchestra:routing_documentation","ref":"routing_documentation","sha":"4f8141ab6dcad69df6b1800ec43513f214af12c2","user":{"login":"open-orchestra","id":11756116,"avatar_url":"https://avatars.githubusercontent.com/u/11756116?v=3","gravatar_id":"","url":"https://api.github.com/users/open-orchestra","html_url":"https://github.com/open-orchestra","followers_url":"https://api.github.com/users/open-orchestra/followers","following_url":"https://api.github.com/users/open-orchestra/following{/other_user}","gists_url":"https://api.github.com/users/open-orchestra/gists{/gist_id}","starred_url":"https://api.github.com/users/open-orchestra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-orchestra/subscriptions","organizations_url":"https://api.github.com/users/open-orchestra/orgs","repos_url":"https://api.github.com/users/open-orchestra/repos","events_url":"https://api.github.com/users/open-orchestra/events{/privacy}","received_events_url":"https://api.github.com/users/open-orchestra/received_events","type":"Organization","site_admin":false},"repo":{"id":33729445,"name":"open-orchestra-docs","full_name":"open-orchestra/open-orchestra-docs","owner":{"login":"open-orchestra","id":11756116,"avatar_url":"https://avatars.githubusercontent.com/u/11756116?v=3","gravatar_id":"","url":"https://api.github.com/users/open-orchestra","html_url":"https://github.com/open-orchestra","followers_url":"https://api.github.com/users/open-orchestra/followers","following_url":"https://api.github.com/users/open-orchestra/following{/other_user}","gists_url":"https://api.github.com/users/open-orchestra/gists{/gist_id}","starred_url":"https://api.github.com/users/open-orchestra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-orchestra/subscriptions","organizations_url":"https://api.github.com/users/open-orchestra/orgs","repos_url":"https://api.github.com/users/open-orchestra/repos","events_url":"https://api.github.com/users/open-orchestra/events{/privacy}","received_events_url":"https://api.github.com/users/open-orchestra/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/open-orchestra/open-orchestra-docs","description":"The Open Orchestra project documentation","fork":false,"url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs","forks_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/forks","keys_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/teams","hooks_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/hooks","issue_events_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/issues/events{/number}","events_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/events","assignees_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/assignees{/user}","branches_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/branches{/branch}","tags_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/tags","blobs_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/languages","stargazers_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/stargazers","contributors_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/contributors","subscribers_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/subscribers","subscription_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/subscription","commits_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/contents/{+path}","compare_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/merges","archive_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/downloads","issues_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/issues{/number}","pulls_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/labels{/name}","releases_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/releases{/id}","created_at":"2015-04-10T13:19:49Z","updated_at":"2015-04-14T17:18:07Z","pushed_at":"2015-04-24T15:54:19Z","git_url":"git://github.com/open-orchestra/open-orchestra-docs.git","ssh_url":"git@github.com:open-orchestra/open-orchestra-docs.git","clone_url":"https://github.com/open-orchestra/open-orchestra-docs.git","svn_url":"https://github.com/open-orchestra/open-orchestra-docs","homepage":null,"size":1996,"stargazers_count":1,"watchers_count":1,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":10,"forks":0,"open_issues":10,"watchers":1,"default_branch":"master"}},"base":{"label":"open-orchestra:master","ref":"master","sha":"1989c8dd1893880f714a553fe92f3ac33322e883","user":{"login":"open-orchestra","id":11756116,"avatar_url":"https://avatars.githubusercontent.com/u/11756116?v=3","gravatar_id":"","url":"https://api.github.com/users/open-orchestra","html_url":"https://github.com/open-orchestra","followers_url":"https://api.github.com/users/open-orchestra/followers","following_url":"https://api.github.com/users/open-orchestra/following{/other_user}","gists_url":"https://api.github.com/users/open-orchestra/gists{/gist_id}","starred_url":"https://api.github.com/users/open-orchestra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-orchestra/subscriptions","organizations_url":"https://api.github.com/users/open-orchestra/orgs","repos_url":"https://api.github.com/users/open-orchestra/repos","events_url":"https://api.github.com/users/open-orchestra/events{/privacy}","received_events_url":"https://api.github.com/users/open-orchestra/received_events","type":"Organization","site_admin":false},"repo":{"id":33729445,"name":"open-orchestra-docs","full_name":"open-orchestra/open-orchestra-docs","owner":{"login":"open-orchestra","id":11756116,"avatar_url":"https://avatars.githubusercontent.com/u/11756116?v=3","gravatar_id":"","url":"https://api.github.com/users/open-orchestra","html_url":"https://github.com/open-orchestra","followers_url":"https://api.github.com/users/open-orchestra/followers","following_url":"https://api.github.com/users/open-orchestra/following{/other_user}","gists_url":"https://api.github.com/users/open-orchestra/gists{/gist_id}","starred_url":"https://api.github.com/users/open-orchestra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-orchestra/subscriptions","organizations_url":"https://api.github.com/users/open-orchestra/orgs","repos_url":"https://api.github.com/users/open-orchestra/repos","events_url":"https://api.github.com/users/open-orchestra/events{/privacy}","received_events_url":"https://api.github.com/users/open-orchestra/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/open-orchestra/open-orchestra-docs","description":"The Open Orchestra project documentation","fork":false,"url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs","forks_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/forks","keys_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/teams","hooks_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/hooks","issue_events_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/issues/events{/number}","events_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/events","assignees_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/assignees{/user}","branches_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/branches{/branch}","tags_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/tags","blobs_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/languages","stargazers_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/stargazers","contributors_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/contributors","subscribers_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/subscribers","subscription_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/subscription","commits_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/contents/{+path}","compare_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/merges","archive_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/downloads","issues_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/issues{/number}","pulls_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/labels{/name}","releases_url":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/releases{/id}","created_at":"2015-04-10T13:19:49Z","updated_at":"2015-04-14T17:18:07Z","pushed_at":"2015-04-24T15:54:19Z","git_url":"git://github.com/open-orchestra/open-orchestra-docs.git","ssh_url":"git@github.com:open-orchestra/open-orchestra-docs.git","clone_url":"https://github.com/open-orchestra/open-orchestra-docs.git","svn_url":"https://github.com/open-orchestra/open-orchestra-docs","homepage":null,"size":1996,"stargazers_count":1,"watchers_count":1,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":10,"forks":0,"open_issues":10,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/pulls/36"},"html":{"href":"https://github.com/open-orchestra/open-orchestra-docs/pull/36"},"issue":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/issues/36"},"comments":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/issues/36/comments"},"review_comments":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/pulls/36/comments"},"review_comment":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/pulls/36/commits"},"statuses":{"href":"https://api.github.com/repos/open-orchestra/open-orchestra-docs/statuses/4f8141ab6dcad69df6b1800ec43513f214af12c2"}}}}