{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/659","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/659/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/659/comments","events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/659/events","html_url":"https://github.com/Automattic/wp-calypso/issues/659","id":118666588,"number":659,"title":"Framework: Better handle slashes in urls","user":{"login":"hoverduck","id":7233112,"avatar_url":"https://avatars.githubusercontent.com/u/7233112?v=3","gravatar_id":"","url":"https://api.github.com/users/hoverduck","html_url":"https://github.com/hoverduck","followers_url":"https://api.github.com/users/hoverduck/followers","following_url":"https://api.github.com/users/hoverduck/following{/other_user}","gists_url":"https://api.github.com/users/hoverduck/gists{/gist_id}","starred_url":"https://api.github.com/users/hoverduck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoverduck/subscriptions","organizations_url":"https://api.github.com/users/hoverduck/orgs","repos_url":"https://api.github.com/users/hoverduck/repos","events_url":"https://api.github.com/users/hoverduck/events{/privacy}","received_events_url":"https://api.github.com/users/hoverduck/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/Framework","name":"Framework","color":"006b75"},{"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/[Pri]%20Low","name":"[Pri] Low","color":"fef2c0"},{"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/[Type]%20Bug","name":"[Type] Bug","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Automattic/wp-calypso/milestones/20","html_url":"https://github.com/Automattic/wp-calypso/milestones/Core:%20Iteration%2017","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/milestones/20/labels","id":1420284,"number":20,"title":"Core: Iteration 17","description":null,"creator":{"login":"hoverduck","id":7233112,"avatar_url":"https://avatars.githubusercontent.com/u/7233112?v=3","gravatar_id":"","url":"https://api.github.com/users/hoverduck","html_url":"https://github.com/hoverduck","followers_url":"https://api.github.com/users/hoverduck/followers","following_url":"https://api.github.com/users/hoverduck/following{/other_user}","gists_url":"https://api.github.com/users/hoverduck/gists{/gist_id}","starred_url":"https://api.github.com/users/hoverduck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoverduck/subscriptions","organizations_url":"https://api.github.com/users/hoverduck/orgs","repos_url":"https://api.github.com/users/hoverduck/repos","events_url":"https://api.github.com/users/hoverduck/events{/privacy}","received_events_url":"https://api.github.com/users/hoverduck/received_events","type":"User","site_admin":false},"open_issues":34,"closed_issues":0,"state":"open","created_at":"2015-11-19T17:10:22Z","updated_at":"2015-11-30T16:31:49Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-11-24T17:46:15Z","updated_at":"2015-11-30T16:35:23Z","closed_at":null,"body":"We sometimes have to use values with slashes in url placeholders. For example in the new domain management section we define a `/domains/manage/:domainAddress/edit/:siteId` route where `:domainAddress` can be something such as `www.mysite.com/myblog`, which leads to the following url once encoded: `https://wordpress.com/domains/manage/www.mysite.com%252Fmyblog/edit/mydomain.com`.\r\n\r\nHowever, it requires to double encode these values because of the default configuration of `page.js`. It's suggested that we find a way to improve that, so slashes are not decoded before matching.\r\n\r\nHere is a [relevant issue](https://github.com/visionmedia/page.js/issues/187) from `page.js`."},"comment":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments/160681484","html_url":"https://github.com/Automattic/wp-calypso/issues/659#issuecomment-160681484","issue_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/659","id":160681484,"user":{"login":"mtias","id":548849,"avatar_url":"https://avatars.githubusercontent.com/u/548849?v=3","gravatar_id":"","url":"https://api.github.com/users/mtias","html_url":"https://github.com/mtias","followers_url":"https://api.github.com/users/mtias/followers","following_url":"https://api.github.com/users/mtias/following{/other_user}","gists_url":"https://api.github.com/users/mtias/gists{/gist_id}","starred_url":"https://api.github.com/users/mtias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtias/subscriptions","organizations_url":"https://api.github.com/users/mtias/orgs","repos_url":"https://api.github.com/users/mtias/repos","events_url":"https://api.github.com/users/mtias/events{/privacy}","received_events_url":"https://api.github.com/users/mtias/received_events","type":"User","site_admin":false},"created_at":"2015-11-30T16:35:23Z","updated_at":"2015-11-30T16:35:23Z","body":"We do this syntax for domains that have slashes: `example.com/path` -> `example.com::path`. That should be working already if you want to leverage it."}}