{"action":"opened","issue":{"url":"https://api.github.com/repos/Sterc/SEOPro/issues/39","labels_url":"https://api.github.com/repos/Sterc/SEOPro/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/Sterc/SEOPro/issues/39/comments","events_url":"https://api.github.com/repos/Sterc/SEOPro/issues/39/events","html_url":"https://github.com/Sterc/SEOPro/issues/39","id":56383104,"number":39,"title":"Friendly URL Error for Homepage (alias)","user":{"login":"bartholomej","id":5861310,"avatar_url":"https://avatars.githubusercontent.com/u/5861310?v=3","gravatar_id":"","url":"https://api.github.com/users/bartholomej","html_url":"https://github.com/bartholomej","followers_url":"https://api.github.com/users/bartholomej/followers","following_url":"https://api.github.com/users/bartholomej/following{/other_user}","gists_url":"https://api.github.com/users/bartholomej/gists{/gist_id}","starred_url":"https://api.github.com/users/bartholomej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartholomej/subscriptions","organizations_url":"https://api.github.com/users/bartholomej/orgs","repos_url":"https://api.github.com/users/bartholomej/repos","events_url":"https://api.github.com/users/bartholomej/events{/privacy}","received_events_url":"https://api.github.com/users/bartholomej/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-03T14:19:12Z","updated_at":"2015-02-03T14:19:12Z","closed_at":null,"body":"You get an error `Cannot read property 'dom' of null` when you are trying to save homepage with friendly urls turned on.\r\n\r\n**Reason**\r\nYou are trying to render to an invalid div. Class `seopro-replace-alias` is not injected because alias can't be replaced as the string you search for doesn't exist. *Full scheme url* for **homepage** is actually without alias ;)\r\n<del>`http://github.com/homepage`</del> -> `http://github.com`\r\n\r\nThis is from plugin:\r\n````php\r\n$url = $modx->makeUrl($resource->get('id'), '', '', 'full');\r\n$url = str_replace($resource->get('alias'), '<span id=\\\"seopro-replace-alias\\\">' . $resource->get('alias') . '</span>', $url);\r\n````\r\nMODX 2.3.3"}}