{"action":"created","issue":{"url":"https://api.github.com/repos/sebastian-lenz/craft-linkfield/issues/26","repository_url":"https://api.github.com/repos/sebastian-lenz/craft-linkfield","labels_url":"https://api.github.com/repos/sebastian-lenz/craft-linkfield/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/sebastian-lenz/craft-linkfield/issues/26/comments","events_url":"https://api.github.com/repos/sebastian-lenz/craft-linkfield/issues/26/events","html_url":"https://github.com/sebastian-lenz/craft-linkfield/issues/26","id":344453201,"node_id":"MDU6SXNzdWUzNDQ0NTMyMDE=","number":26,"title":"Adding relative links","user":{"login":"dgrigg","id":166361,"node_id":"MDQ6VXNlcjE2NjM2MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/166361?v=4","gravatar_id":"","url":"https://api.github.com/users/dgrigg","html_url":"https://github.com/dgrigg","followers_url":"https://api.github.com/users/dgrigg/followers","following_url":"https://api.github.com/users/dgrigg/following{/other_user}","gists_url":"https://api.github.com/users/dgrigg/gists{/gist_id}","starred_url":"https://api.github.com/users/dgrigg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgrigg/subscriptions","organizations_url":"https://api.github.com/users/dgrigg/orgs","repos_url":"https://api.github.com/users/dgrigg/repos","events_url":"https://api.github.com/users/dgrigg/events{/privacy}","received_events_url":"https://api.github.com/users/dgrigg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-25T13:52:42Z","updated_at":"2018-07-25T16:37:56Z","closed_at":null,"author_association":"NONE","body":"Is there a way to add a relative link to a linkfield, ie /product/test instead of http://mysite.com/product/test? Right now any relative url is rejected. It would also be nice to add a token like {siteUrl}/product/test that would replace the siteUrl with the current domain being used."},"comment":{"url":"https://api.github.com/repos/sebastian-lenz/craft-linkfield/issues/comments/407818314","html_url":"https://github.com/sebastian-lenz/craft-linkfield/issues/26#issuecomment-407818314","issue_url":"https://api.github.com/repos/sebastian-lenz/craft-linkfield/issues/26","id":407818314,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzgxODMxNA==","user":{"login":"sebastian-lenz","id":2273359,"node_id":"MDQ6VXNlcjIyNzMzNTk=","avatar_url":"https://avatars2.githubusercontent.com/u/2273359?v=4","gravatar_id":"","url":"https://api.github.com/users/sebastian-lenz","html_url":"https://github.com/sebastian-lenz","followers_url":"https://api.github.com/users/sebastian-lenz/followers","following_url":"https://api.github.com/users/sebastian-lenz/following{/other_user}","gists_url":"https://api.github.com/users/sebastian-lenz/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastian-lenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastian-lenz/subscriptions","organizations_url":"https://api.github.com/users/sebastian-lenz/orgs","repos_url":"https://api.github.com/users/sebastian-lenz/repos","events_url":"https://api.github.com/users/sebastian-lenz/events{/privacy}","received_events_url":"https://api.github.com/users/sebastian-lenz/received_events","type":"User","site_admin":false},"created_at":"2018-07-25T16:37:56Z","updated_at":"2018-07-25T16:37:56Z","author_association":"OWNER","body":"You can allow relative links in custom url fields by disabling the validator in the options of the field. The idea with the tokens is great, I'll have to check which APIs the Craft/YII has to offer."}}
{"actor":{"display_login":"sebastian-lenz"}}