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

Don't do a url alias lookup for redirects to modules

    XMLWordPrintable

Details

    Description

      The following code, which is clearly a redirect to a module, results in a lookup in the url alias table before redirecting:

      return $Module->redirectToView( "edit", array( $ObjectID, $version->attribute( "version" ), $EditLanguage ) );
      

      SQL:

      SELECT id, parent, lang_mask, text, action FROM ezurlalias_ml WHERE (ezurlalias_ml.lang_mask & 7 > 0) AND action='module:content/edit/4102/3/eng-GB' AND is_original = 1 AND is_alias = 0
      

      The url alias lookup isn't necessary in this case.

      Attachments

        Activity

          People

            cyberwolf cyberwolf
            cyberwolf cyberwolf
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: