{"action":"created","issue":{"url":"https://api.github.com/repos/activeadmin/activeadmin/issues/3894","labels_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/3894/labels{/name}","comments_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/3894/comments","events_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/3894/events","html_url":"https://github.com/activeadmin/activeadmin/issues/3894","id":68336778,"number":3894,"title":"Infinite tab reloading when specifying non-'pretty' title","user":{"login":"saidie","id":1153176,"avatar_url":"https://avatars.githubusercontent.com/u/1153176?v=3","gravatar_id":"","url":"https://api.github.com/users/saidie","html_url":"https://github.com/saidie","followers_url":"https://api.github.com/users/saidie/followers","following_url":"https://api.github.com/users/saidie/following{/other_user}","gists_url":"https://api.github.com/users/saidie/gists{/gist_id}","starred_url":"https://api.github.com/users/saidie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saidie/subscriptions","organizations_url":"https://api.github.com/users/saidie/orgs","repos_url":"https://api.github.com/users/saidie/repos","events_url":"https://api.github.com/users/saidie/events{/privacy}","received_events_url":"https://api.github.com/users/saidie/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/activeadmin/activeadmin/labels/3%20-%20Working","name":"3 - Working","color":"d4c5f9"},{"url":"https://api.github.com/repos/activeadmin/activeadmin/labels/Bug","name":"Bug","color":"e10c02"}],"state":"open","locked":false,"assignee":{"login":"timoschilling","id":165599,"avatar_url":"https://avatars.githubusercontent.com/u/165599?v=3","gravatar_id":"","url":"https://api.github.com/users/timoschilling","html_url":"https://github.com/timoschilling","followers_url":"https://api.github.com/users/timoschilling/followers","following_url":"https://api.github.com/users/timoschilling/following{/other_user}","gists_url":"https://api.github.com/users/timoschilling/gists{/gist_id}","starred_url":"https://api.github.com/users/timoschilling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timoschilling/subscriptions","organizations_url":"https://api.github.com/users/timoschilling/orgs","repos_url":"https://api.github.com/users/timoschilling/repos","events_url":"https://api.github.com/users/timoschilling/events{/privacy}","received_events_url":"https://api.github.com/users/timoschilling/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-04-14T10:44:01Z","updated_at":"2015-08-20T08:56:57Z","closed_at":null,"body":"Hi, I encountered infinite tab reloading when I've used an UTF-8 string for `tab` method:\r\n```ruby\r\ntabs do\r\n  tab \"ほげ\" do # be converted something like `<a href=\"#\">ほげ</a>`\r\n    # ...\r\n  end\r\nend\r\n# => infinite reloading\r\n```\r\nIt seems due to an empty URL fragment of `a` tag and maybe the implementation of jQuery.\r\nThe empty URL fragment may be produced by `String#parameterize` here:\r\nhttps://github.com/activeadmin/activeadmin/blob/v1.0.0.pre1/lib/active_admin/views/components/tabs.rb#L19 .\r\nHence, same issue would be occurred when passing non-'pretty' ASCII string such as `'...'`.\r\n\r\nI suppose several fixes for this issue:\r\n- taking a `fragment` (or any other) option for URL fragment,\r\n- taking a `label` option for the anchor text, or\r\n- passing the `title` argument to `I18n.t`.\r\n\r\nThank you for your attention."},"comment":{"url":"https://api.github.com/repos/activeadmin/activeadmin/issues/comments/132943740","html_url":"https://github.com/activeadmin/activeadmin/issues/3894#issuecomment-132943740","issue_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/3894","id":132943740,"user":{"login":"ifyouseewendy","id":1019171,"avatar_url":"https://avatars.githubusercontent.com/u/1019171?v=3","gravatar_id":"","url":"https://api.github.com/users/ifyouseewendy","html_url":"https://github.com/ifyouseewendy","followers_url":"https://api.github.com/users/ifyouseewendy/followers","following_url":"https://api.github.com/users/ifyouseewendy/following{/other_user}","gists_url":"https://api.github.com/users/ifyouseewendy/gists{/gist_id}","starred_url":"https://api.github.com/users/ifyouseewendy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ifyouseewendy/subscriptions","organizations_url":"https://api.github.com/users/ifyouseewendy/orgs","repos_url":"https://api.github.com/users/ifyouseewendy/repos","events_url":"https://api.github.com/users/ifyouseewendy/events{/privacy}","received_events_url":"https://api.github.com/users/ifyouseewendy/received_events","type":"User","site_admin":false},"created_at":"2015-08-20T08:56:57Z","updated_at":"2015-08-20T08:56:57Z","body":"I've encountered the same issue with Chinese character. My temp solution was monkey-patch on *String*, and use a gem to convert non-ascii characters.\r\n\r\n```ruby\r\nclass String\r\n  def parameterize(sep = '-')\r\n    if self.ascii_only?\r\n      ActiveSupport::Inflector.parameterize(self, sep)\r\n    else\r\n      Pinyin.t(self, splitter: '-')\r\n    end\r\n  end\r\nend\r\n``` "}}