searchgoogle-custom-search

auto adding #gsc.tab=0 after the URL


if I open my domain , it looks like this

http://wwww.domain.com/#gsc.tab=0 

I know it happen with Google custom search. but is there a way to fix it? may be javascript solution or something else.

it seems a lot of sites aren't fixed yet , you can take a look here

    http://hydroharbor.com   
    http://shwesathtagan.com      
    http://techwhack.co/google-custom-search-engine-adding-gsctab0-url-43721/

if someone could help me thanks in advance


Solution

  • PROBLEM

    I faced the same problem the current url was being changed with #gsc.tab=0 in the end like this

    http://example.com#gsc.tab=0
    

    SOLUTION

    1:First make sure the Result browsing history is disabled ,see here

    2: Replace this

     <gcse:search></gcse:search>
    

    with this

    <gcse:search enablehistory="false"></gcse:search>