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
Fix https base tag generation. #6270
Conversation
Fixed https base tag generation. Discussion is here: joomla#4961 (comment)
@@ -73,7 +73,7 @@ public function fetchHead($document) | |||
|
|||
if (!empty($base)) | |||
{ | |||
$buffer .= $tab . '<base href="' . $document->getBase() . '" />' . $lnEnd; | |||
$buffer .= $tab . '<base href="' .Juri::base(). '" />' . $lnEnd; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add spaces like href="' . Juri::base() . '"
spaces added
Reading the code, it seems as if the base is set wrong somewhere. If you don't use getBase(), we can't influence this from for example a plugin. So why are you not fixing the place where the base in JDocument is set to a false value and instead replace the call with the static JURI::base()? |
I think the issue might be in
Shouldn't that be?
|
Peter provided solution, but it wasn't included in Joomla 3.4.3. Please add this patch in next Joomla version. Thank you. |
If someone opens a pull request with his suggested change and it gets tested then it can be included in a future release. Until then, there isn't much that can be done. http://magazine.joomla.org/issues/issue-sept-2015/item/2837-did-they-fix-it-yet offers some good insight on how you can help ensure issues that you are having with the core software get resolved 😄 |
Michael, thanks for the link. Sure, it's important to test all patches. |
The checks block just above the comment box here shows the status of our automated test suites, mainly to make sure that unit tests and codestyle checks continue to pass. Unless a pull request has the |
Ok, thanks for explanation. How many reviews are usually required to accept the patch? |
Fixed https base tag generation. Discussion is here: joomla#6270
Usually two. |
@GregoryRusakov can you update your PR to @nonumber solution? Seems that it is the right one. |
@b2z I sent PR #7902 which implements solution suggested by @nonumber. @GregoryRusakov please test mentioned PR. |
Fixed https base tag generation.
Discussion is here:
#4961 (comment)