GavickPro / Meet-Gavern

Meet Gavern Template for Joomla! 3.0
42 stars 41 forks source link

Login form creating Google crawl error = impact Google index #225

Closed Ruud68 closed 9 years ago

Ruud68 commented 9 years ago

Hi, been investigating some Google crawl errors and ran into on created on al lot of pages by the templates login form. When I am e.g. on this page: https://www.lerendeleiders.nl/blog-layout/63-Ruud it will put this code in the resulting html file:

<div class="overflow">
                                                    <form action="https://www.lerendeleiders.nl/blog-layout" method="post" id="login-form" class="form-inline">
        <div class="userdata">

the culprit is in the url specified in the form action. As you can see it is truncated to the first directory only. the url specified here throws a 403 thus resulting in a crawl error for Google.

I do not understand what this form action does because when login in on this page it will stay on the correct page and not on the truncated url page.

dziudek commented 9 years ago

Hello,

The above code is generated in the mod_login default.php file:

<form action="<?php echo JRoute::_('index.php', true, $params->get('usesecure')); ?>" method="post" id="login-form" class="form-inline">

And the code in the action attribute is the same as in the core joomla code, so this issue is not related to our template.

Ruud68 commented 9 years ago

Thanks for the follow up. will take it to Joomla community :) https://github.com/joomla/joomla-cms/issues/5345 :)

Ruud68 commented 9 years ago

just created a pull request for this one :)