-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Design flaw in core URL helper #228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello. Thanks for the feedback. We will analyze this idea and get back to you. |
Artus -- So recommended contribution is to revert the helper back to use URL model, and make sure the test case with port is maintained. The test case:
|
Fixed by #245 . Closing this issue. |
…ing-Test-Data [Ogre's] Error Generating Test Data
Hi,
I think the implementation of the method
Mage_Core_Helper_Url::getCurrentUrl()
should be moved into the core URL model. In early versions you have used the core URL model for its implementation:Without knowing why you have changed this, but now it is very laborious to override its behaviour. This is because, the core URL helper is currently a base class for eight other helper classes.
Let's suppose you want to override how URLs are generated (e.g. to integrate Magento with TYPO3). Now you have to override the helper itself respectively its derivation beside the core URL model.
Thus I recommend to make the new implementation also be part of the core URL model. This should make it cleaner and more flexible.
If you agree with me, I would create a pull request for this issue.
Best regards,
Artus
The text was updated successfully, but these errors were encountered: