Skip to content

Wrong name conversion on getCustomerRegisterUrlUrl() at AuthenticationPopup.php #36735

Open
@devamitbera

Description

@devamitbera

Preconditions and environment

  • Magento Magento 2.4.(*)

Steps to reproduce

Steps:

Check all Magento 2.4.x and all other Magento 2.3.X versions.

Function name is wrong on method \Magento\Customer\Block\Account\AuthenticationPopup::getCustomerRegisterUrlUrl as per Magento name conversion.

    /**
     * Get customer register url
     *
     * @return string
     */
    public function getCustomerRegisterUrlUrl()
    {
        return $this->getUrl('customer/account/create');
    }

Expected result

Method name should be getCustomerRegisterUrl The method

Actual result

Method name is now getCustomerRegisterUrlUrl The method

Additional information

Also need to change at method getCustomerRegisterUrlUrl;

    /**
     * Returns popup config
     *
     * @return array
     */
    public function getConfig()
    {
        return [
            'autocomplete' => $this->escapeHtml($this->isAutocompleteEnabled()),
            'customerRegisterUrl' => $this->escapeUrl($this->getCustomerRegisterUrlUrl()),
            'customerForgotPasswordUrl' => $this->escapeUrl($this->getCustomerForgotPasswordUrl()),
            'baseUrl' => $this->escapeUrl($this->getBaseUrl()),
            'customerLoginUrl' => $this->getUrl('customer/ajax/login'),
        ];
    }

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

Labels

Area: FrameworkComponent: CodeIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P3May be fixed according to the position in the backlog.Progress: PR in progressReported on 2.4.xIndicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions