{"action":"created","issue":{"url":"https://api.github.com/repos/osclass/Osclass/issues/1928","labels_url":"https://api.github.com/repos/osclass/Osclass/issues/1928/labels{/name}","comments_url":"https://api.github.com/repos/osclass/Osclass/issues/1928/comments","events_url":"https://api.github.com/repos/osclass/Osclass/issues/1928/events","html_url":"https://github.com/osclass/Osclass/issues/1928","id":111018310,"number":1928,"title":"BUG regarding HTTP URL syntax with query standard (every URL is based on this)","user":{"login":"ModDM","id":15093029,"avatar_url":"https://avatars.githubusercontent.com/u/15093029?v=3","gravatar_id":"","url":"https://api.github.com/users/ModDM","html_url":"https://github.com/ModDM","followers_url":"https://api.github.com/users/ModDM/followers","following_url":"https://api.github.com/users/ModDM/following{/other_user}","gists_url":"https://api.github.com/users/ModDM/gists{/gist_id}","starred_url":"https://api.github.com/users/ModDM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ModDM/subscriptions","organizations_url":"https://api.github.com/users/ModDM/orgs","repos_url":"https://api.github.com/users/ModDM/repos","events_url":"https://api.github.com/users/ModDM/events{/privacy}","received_events_url":"https://api.github.com/users/ModDM/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-10-12T17:15:43Z","updated_at":"2015-10-14T11:25:48Z","closed_at":null,"body":"The function of the URL query as part of the HTTP URL syntax standard is missing in Osclass, in the URL custom field feature. Osclass users who want to use this feature will see this doesn't work yet. This is a bug.\r\n\r\nEvery HTTP URL conforms to the syntax of a generic URI. A description (simplified):\r\ndomain[/]path[?query]\r\n\r\nThe query is a sequence of attribute–value pairs separated by a delimiter.\r\n\r\nQuery delimiter        |  Example\r\n-----------------------------|-----------------------------------------------\r\nAmpersand ( & )       |  key1=value1&key2=value2\r\nSemicolon ( ; )         |   key1=value1;key2=value2\r\n\r\nI didn't test the Semicolon delimiter, but the Ampersand (&) delimiter is not working in your sites' admin > Listing > Custom fields > Add new > Type > URL. I explain:\r\n\r\nThe Ampersand (&) has an important function as a delimiter, but when people (users of an Osclass site) enter their site address (URL) containing these delimiters into this custom field, then the Osclass system changes the Ampersand (&) into & amp; (HTML code of &). This is not conform the HTTP URL syntax standard and the resulting URL (after submitting via that custom field) will redirect people to a page saying \"Page not found!\".\r\n\r\nCan this be corrected in a next version of Osclass?"},"comment":{"url":"https://api.github.com/repos/osclass/Osclass/issues/comments/148022575","html_url":"https://github.com/osclass/Osclass/issues/1928#issuecomment-148022575","issue_url":"https://api.github.com/repos/osclass/Osclass/issues/1928","id":148022575,"user":{"login":"dev-101","id":5383059,"avatar_url":"https://avatars.githubusercontent.com/u/5383059?v=3","gravatar_id":"","url":"https://api.github.com/users/dev-101","html_url":"https://github.com/dev-101","followers_url":"https://api.github.com/users/dev-101/followers","following_url":"https://api.github.com/users/dev-101/following{/other_user}","gists_url":"https://api.github.com/users/dev-101/gists{/gist_id}","starred_url":"https://api.github.com/users/dev-101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dev-101/subscriptions","organizations_url":"https://api.github.com/users/dev-101/orgs","repos_url":"https://api.github.com/users/dev-101/repos","events_url":"https://api.github.com/users/dev-101/events{/privacy}","received_events_url":"https://api.github.com/users/dev-101/received_events","type":"User","site_admin":false},"created_at":"2015-10-14T11:25:48Z","updated_at":"2015-10-14T11:25:48Z","body":"Hi, I see now that you are correct. Browser will treat `&amp;` literally and this will break the URL.\r\n\r\nI have tried to add this URL for test:\r\nhttps://demo.osclass.org/cars/index.php?page=item&id=760\r\n\r\nand it was converted to html encoded version, which does not work:\r\n`https://demo.osclass.org/cars/index.php?page=item&amp;id=760`"}}