{"action":"created","issue":{"url":"https://api.github.com/repos/sonata-project/SonataUserBundle/issues/485","labels_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/issues/485/labels{/name}","comments_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/issues/485/comments","events_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/issues/485/events","html_url":"https://github.com/sonata-project/SonataUserBundle/issues/485","id":45967195,"number":485,"title":"Wrong logout URL using url() instead of path()","user":{"login":"samuel4x4","id":3427855,"avatar_url":"https://avatars.githubusercontent.com/u/3427855?v=3","gravatar_id":"","url":"https://api.github.com/users/samuel4x4","html_url":"https://github.com/samuel4x4","followers_url":"https://api.github.com/users/samuel4x4/followers","following_url":"https://api.github.com/users/samuel4x4/following{/other_user}","gists_url":"https://api.github.com/users/samuel4x4/gists{/gist_id}","starred_url":"https://api.github.com/users/samuel4x4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samuel4x4/subscriptions","organizations_url":"https://api.github.com/users/samuel4x4/orgs","repos_url":"https://api.github.com/users/samuel4x4/repos","events_url":"https://api.github.com/users/samuel4x4/events{/privacy}","received_events_url":"https://api.github.com/users/samuel4x4/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-10-16T09:48:45Z","updated_at":"2015-01-22T14:31:05Z","closed_at":null,"body":"https://github.com/sonata-project/SonataUserBundle/blob/master/Resources/views/Admin/Core/user_block.html.twig#L5\r\n\r\nWhy is there used url('...') instead of path('...')?\r\n\r\nI noticed everywhere in SonataUserBundle the twig function path() is used, the url() one is present in just a few places. \r\n\r\nThe url() generates a wrong absolute URL in my project, but path() works, I think the relative URL should be used.\r\n\r\nThank you."},"comment":{"url":"https://api.github.com/repos/sonata-project/SonataUserBundle/issues/comments/71028092","html_url":"https://github.com/sonata-project/SonataUserBundle/issues/485#issuecomment-71028092","issue_url":"https://api.github.com/repos/sonata-project/SonataUserBundle/issues/485","id":71028092,"user":{"login":"webdevilopers","id":3479626,"avatar_url":"https://avatars.githubusercontent.com/u/3479626?v=3","gravatar_id":"","url":"https://api.github.com/users/webdevilopers","html_url":"https://github.com/webdevilopers","followers_url":"https://api.github.com/users/webdevilopers/followers","following_url":"https://api.github.com/users/webdevilopers/following{/other_user}","gists_url":"https://api.github.com/users/webdevilopers/gists{/gist_id}","starred_url":"https://api.github.com/users/webdevilopers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webdevilopers/subscriptions","organizations_url":"https://api.github.com/users/webdevilopers/orgs","repos_url":"https://api.github.com/users/webdevilopers/repos","events_url":"https://api.github.com/users/webdevilopers/events{/privacy}","received_events_url":"https://api.github.com/users/webdevilopers/received_events","type":"User","site_admin":false},"created_at":"2015-01-22T14:31:04Z","updated_at":"2015-01-22T14:31:04Z","body":"My routing file:\r\n```yaml\r\nsonata_user:\r\n    resource: '@SonataUserBundle/Resources/config/routing/admin_security.xml'\r\n    prefix: /admin\r\n    \r\nsonata_user_security:\r\n    resource: \"@SonataUserBundle/Resources/config/routing/sonata_security_1.xml\"\r\n```\r\n\r\nThe logout route is set in SonataUserBundle/Resources/config/routing/admin_security.xml:\r\n```xml\r\n<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\r\n\r\n<routes xmlns=\"http://symfony.com/schema/routing\"\r\n    xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\r\n    xsi:schemaLocation=\"http://symfony.com/schema/routing http://symfony.com/schema/routing/routing-1.0.xsd\">\r\n\r\n    <route id=\"sonata_user_admin_security_login\" pattern=\"/login\">\r\n        <default key=\"_controller\">SonataUserBundle:AdminSecurity:login</default>\r\n    </route>\r\n\r\n    <route id=\"sonata_user_admin_security_check\" pattern=\"/login_check\">\r\n        <default key=\"_controller\">SonataUserBundle:AdminSecurity:check</default>\r\n    </route>\r\n\r\n    <route id=\"sonata_user_admin_security_logout\" pattern=\"/logout\">\r\n        <default key=\"_controller\">SonataUserBundle:AdminSecurity:logout</default>\r\n    </route>\r\n</routes>\r\n```\r\n\r\nBut also in SonataUserBundle/Resources/config/routing/sonata_security_1.xml:\r\n```xml\r\n<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\r\n\r\n<routes xmlns=\"http://symfony.com/schema/routing\"\r\n    xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\r\n    xsi:schemaLocation=\"http://symfony.com/schema/routing http://symfony.com/schema/routing/routing-1.0.xsd\">\r\n\r\n    <route id=\"fos_user_security_login\" pattern=\"/login\">\r\n        <default key=\"_controller\">SonataUserBundle:SecurityFOSUser1:login</default>\r\n    </route>\r\n\r\n    <route id=\"fos_user_security_check\" pattern=\"/login_check\">\r\n        <default key=\"_controller\">SonataUserBundle:SecurityFOSUser1:check</default>\r\n        <requirement key=\"_method\">POST</requirement>\r\n    </route>\r\n\r\n    <route id=\"fos_user_security_logout\" pattern=\"/logout\">\r\n        <default key=\"_controller\">SonataUserBundle:SecurityFOSUser1:logout</default>\r\n    </route>\r\n\r\n    <route id=\"sonata_user_security_login\" pattern=\"/login\">\r\n        <default key=\"_controller\">SonataUserBundle:SecurityFOSUser1:login</default>\r\n    </route>\r\n\r\n    <route id=\"sonata_user_security_check\" pattern=\"/login_check\">\r\n        <default key=\"_controller\">SonataUserBundle:SecurityFOSUser1:check</default>\r\n        <requirement key=\"_method\">POST</requirement>\r\n    </route>\r\n\r\n    <route id=\"sonata_user_security_logout\" pattern=\"/logout\">\r\n        <default key=\"_controller\">SonataUserBundle:SecurityFOSUser1:logout</default>\r\n    </route>\r\n\r\n</routes>\r\n```\r\n\r\nThis should simply set routings for `logout` and `admin/logout`.\r\nMy firewalls look fine too:\r\n\r\n```yaml\r\n        main:\r\n            pattern:             .*\r\n            context:             user\r\n            form_login:\r\n                provider:       fos_userbundle\r\n                login_path:     /login\r\n                use_forward:    false\r\n                check_path:     /login_check\r\n                failure_path:   null\r\n            logout:\r\n                path:           /logout\r\n            anonymous:          true\r\n            \r\n            # Session liftime\r\n            remember_me:\r\n                key: '%secret%'\r\n                lifetime: 28800\r\n            \r\n            # Sonata User Impersonating\r\n            switch_user: true\r\n\r\n        # -> custom firewall for the admin area of the URL\r\n        admin:\r\n            pattern:            /admin(.*)\r\n            context:            user\r\n            form_login:\r\n                provider:       fos_userbundle\r\n                login_path:     /login\r\n                use_forward:    false\r\n                check_path:     /admin/login_check\r\n            logout:\r\n                path:           /admin/logout\r\n            anonymous:          false\r\n```\r\n\r\nBut still I get **You must activate the logout in your security firewall configuration.**\r\n\r\nStill can't see what's wrong in config. Wrong order maybe, @stof ?"}}