Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-21354

Siteaccess part missing in generated symfony routes

    Details

      Description

      The siteaccess is not prepended on generated routes defined in the symfony stack.

        Issue Links

          Activity

          Hide
          Andras Debreczeni added a comment -
          Show
          Andras Debreczeni added a comment - somewhat related: https://jira.ez.no/browse/EZP-20686
          Hide
          Joaquim Cavalleri (Inactive) added a comment -
          Steps to reproduce:

          In ezpublish.yml define, a Map\URI match method, such as:

          match:
            Map\URI:
              eng: eng
              ezadmin: ezadmin
              ezsite: ezsite

          Create a new SF bundle and define the following routes:

          my_test_bundle_main:
              path: /members/
              defaults: { _controller: "MyTestBundle:Default:profile" }
          my_test_bundle_account:
              path: /members/my_account/
              defaults: { _controller: "MyTestBundle:Default:account" }

          Implement the actions as such:

              public function profileAction()
              {
                  $url = $this->get( "router" )->generate( "my_test_bundle_account" );
                  $response = new \Symfony\Component\HttpFoundation\Response;
                  $response->setContent( $url );
                  return $response;
              }
              public function accountAction()
              {
                  $response = new \Symfony\Component\HttpFoundation\Response;
                  $response->setContent( "Account action called" );
                  return $response;
              }

          Open profile url in your browser
          <your-domain>/eng/<your-bundle>/members/
          The url will render <your-bundle>/members/my_account instead of the expected /eng/<your-bundle>/members/my_account

          Show
          Joaquim Cavalleri (Inactive) added a comment - Steps to reproduce: In ezpublish.yml define, a Map\URI match method, such as: match: Map\URI: eng: eng ezadmin: ezadmin ezsite: ezsite Create a new SF bundle and define the following routes: my_test_bundle_main: path: /members/ defaults: { _controller: "MyTestBundle:Default:profile" } my_test_bundle_account: path: /members/my_account/ defaults: { _controller: "MyTestBundle:Default:account" } Implement the actions as such: public function profileAction() { $url = $this->get( "router" )->generate( "my_test_bundle_account" ); $response = new \Symfony\Component\HttpFoundation\Response; $response->setContent( $url ); return $response; } public function accountAction() { $response = new \Symfony\Component\HttpFoundation\Response; $response->setContent( "Account action called" ); return $response; } Open profile url in your browser <your-domain>/eng/<your-bundle>/members/ The url will render <your-bundle>/members/my_account instead of the expected / eng /<your-bundle>/members/my_account
          Show
          Jérôme Vieilledent (Inactive) added a comment - https://github.com/ezsystems/ezpublish-kernel/pull/474
          Show
          Jérôme Vieilledent (Inactive) added a comment - Fixed in master: https://github.com/ezsystems/ezpublish-kernel/commit/00ef707bb630acb1005dfc299edc1cc93e5cc03c
          Hide
          Marcos Loureiro (Inactive) added a comment -

          QA Approved

          Show
          Marcos Loureiro (Inactive) added a comment - QA Approved

            People

            • Assignee:
              Unassigned
              Reporter:
              Andras Debreczeni
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 3 hours, 15 minutes
                1d 3h 15m