{"action":"created","issue":{"url":"https://api.github.com/repos/humhub/humhub/issues/990","labels_url":"https://api.github.com/repos/humhub/humhub/issues/990/labels{/name}","comments_url":"https://api.github.com/repos/humhub/humhub/issues/990/comments","events_url":"https://api.github.com/repos/humhub/humhub/issues/990/events","html_url":"https://github.com/humhub/humhub/pull/990","id":71418701,"number":990,"title":"Update SpaceUrlRule.php","user":{"login":"WASasquatch","id":1151589,"avatar_url":"https://avatars.githubusercontent.com/u/1151589?v=3","gravatar_id":"","url":"https://api.github.com/users/WASasquatch","html_url":"https://github.com/WASasquatch","followers_url":"https://api.github.com/users/WASasquatch/followers","following_url":"https://api.github.com/users/WASasquatch/following{/other_user}","gists_url":"https://api.github.com/users/WASasquatch/gists{/gist_id}","starred_url":"https://api.github.com/users/WASasquatch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WASasquatch/subscriptions","organizations_url":"https://api.github.com/users/WASasquatch/orgs","repos_url":"https://api.github.com/users/WASasquatch/repos","events_url":"https://api.github.com/users/WASasquatch/events{/privacy}","received_events_url":"https://api.github.com/users/WASasquatch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-27T22:23:57Z","updated_at":"2015-04-28T05:51:34Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/humhub/humhub/pulls/990","html_url":"https://github.com/humhub/humhub/pull/990","diff_url":"https://github.com/humhub/humhub/pull/990.diff","patch_url":"https://github.com/humhub/humhub/pull/990.patch"},"body":"***Dual-Purpose GUID / Name system for Spaces***\r\n\r\nSpace names now used in URL for human-readable links.\r\n<img src=\"http://img.prntscr.com/img?url=http://i.imgur.com/6pkpFEL.jpg\" />\r\n\r\n**Non-compliant** characters cause URL controller to fallback to GUID.\r\n<img src=\"http://img.prntscr.com/img?url=http://i.imgur.com/ErSg2KY.jpg\" />\r\n\r\nI would like to add \"article\" like urls, but unfortunately I cannot until full text indexing is enabled on HumHub data tables. For example a url like \r\n`s/Nutrients+%26+Deficiencies/home` could be `s/Nutrients-Deficiencies/home`\r\nand\r\n`s/Seed+Banks/home` could be `s/Seed-Banks/home`\r\n\r\nUsing a similar query like this through Yii match functions\r\n```sql\r\nSELECT name FROM space WHERE MATCH (name) AGAINST ('%Nutrients-Deficiencies%' IN BOOLEAN MODE)\r\n```"},"comment":{"url":"https://api.github.com/repos/humhub/humhub/issues/comments/96923602","html_url":"https://github.com/humhub/humhub/pull/990#issuecomment-96923602","issue_url":"https://api.github.com/repos/humhub/humhub/issues/990","id":96923602,"user":{"login":"WASasquatch","id":1151589,"avatar_url":"https://avatars.githubusercontent.com/u/1151589?v=3","gravatar_id":"","url":"https://api.github.com/users/WASasquatch","html_url":"https://github.com/WASasquatch","followers_url":"https://api.github.com/users/WASasquatch/followers","following_url":"https://api.github.com/users/WASasquatch/following{/other_user}","gists_url":"https://api.github.com/users/WASasquatch/gists{/gist_id}","starred_url":"https://api.github.com/users/WASasquatch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WASasquatch/subscriptions","organizations_url":"https://api.github.com/users/WASasquatch/orgs","repos_url":"https://api.github.com/users/WASasquatch/repos","events_url":"https://api.github.com/users/WASasquatch/events{/privacy}","received_events_url":"https://api.github.com/users/WASasquatch/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T05:51:34Z","updated_at":"2015-04-28T05:51:34Z","body":"I could also add third handling option for a space token which could be set via the Space -> General Settings page. If a token is set it could be used instead. For example `nutes-and-defs` could be the token set for the space `Nutrients & Deficiencies`, if a token is used and refers to a valid token in the DB, it would be used instead of Space name or GUID. \r\n\r\nIf that sounds like a good idea I can make the relevant changes. "}}