auto adding #gsc.tab=0 after the URL
Asked Answered
S

4

8

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

Sorrells answered 3/4, 2013 at 4:44 Comment(0)
A
12

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>
Aenneea answered 21/2, 2018 at 10:17 Comment(0)
B
5

Advice on disabling "Results Browsing History" in the Custom Search control panel worked for me...

In the custom search control panel, select: Search Features > Advanced > Results Browsing History [disable]

Bedlamite answered 29/8, 2013 at 5:13 Comment(2)
Thank you Meez! I had to turn OFF "Results Sorting" to get rid of the "#gsc.tab" issue in our Wordpress install.Kaleena
This option can also be set in code and overwrites the UI behavior. <gcse:search enableHistory="false"></gcse:search>Angy
H
1

If you add google's programmable search engine to your website, via custom code, you may find that it adds a strange code to the end of your website URL. In my case, it was # gsc.tab=0.

You can disable this, by logging into your Google account, and selecting the search engine you want to edit.

From the "overview" section, scroll down to "search features" and select "all search feature settings". Then scroll down to the very bottom of the page and and under "advanced settings" select "web search settings" and disable "results browsing history".

You don't need to make any changes on your website, as the code will automatically be updated.

Harris answered 14/8 at 2:57 Comment(0)
F
0

The "#gsc.tab" issue has now been fixed.

See here

Face answered 17/4, 2013 at 23:11 Comment(2)
the is a very bad answer, can you explain what the fix is?Angy
Not sure what you mean with fixed, it is October 2022 now (5,5 years later) and I still had to turn OFF "Results Sorting" to get rid of the "#gsc.tab" issue as described in the accepted answer.Death

© 2022 - 2024 — McMap. All rights reserved.