Hashtags in Webhelp output

<oXygen/> general issues.
ashleybrown415
Posts: 8
Joined: Mon May 04, 2015 10:51 pm

Hashtags in Webhelp output

Post by ashleybrown415 » Tue May 19, 2015 10:17 pm

Hi,

The oXygen webhelp output uses hashtags as a separator, but google doesn't index them properly and they're causing a bunch of problems for our team. Can I change this setting somehow? Ideally, the #s would just be dropped altogether, i.e.

http://docs.localytics.com/#Dev/Instrum ... -mode.html

would become

http://docs.localytics.com/Dev/Instrume ... -mode.html

Thanks in advance to anyone who can help!

Ashley

sorin_ristache
Posts: 4144
Joined: Fri Mar 28, 2003 2:12 pm

Re: Hashtags in Webhelp output

Post by sorin_ristache » Wed May 20, 2015 5:28 pm

The hash characters (the #'s) should not be removed from the address of the WebHelp pages and from the links to other WebHelp pages.

Google will index properly the pages that have a # in the address if you override in your custom Google Analytics code the default page value by adding a call like this one:

Code: Select all

ga('send', 'pageview', { 'page': window.location.pathname + window.location.search + window.location.hash});
as explained on the Analytics website.
Regards,
Sorin

<oXygen/> XML Editor Support

ashleybrown415
Posts: 8
Joined: Mon May 04, 2015 10:51 pm

Re: Hashtags in Webhelp output

Post by ashleybrown415 » Thu May 21, 2015 7:39 pm

Is there a way for us to fix this behavior, where an incorrect link including a hashtag causes the site to load inside itself?

Thanks!
Ashley

ashleybrown415
Posts: 8
Joined: Mon May 04, 2015 10:51 pm

Re: Hashtags in Webhelp output

Post by ashleybrown415 » Thu May 21, 2015 10:14 pm

Also, could you clarify how it could be that the change you're suggesting would affect Google search results, since Google search crawlers can't & don't read javascript? It's hard to imagine how the change could impact how our site reads & routes URL requests. Many of our customers come to our site via Google search, so it's vital that the links are indexed properly.

Thanks!
Ashley

sorin_ristache
Posts: 4144
Joined: Fri Mar 28, 2003 2:12 pm

Re: Hashtags in Webhelp output

Post by sorin_ristache » Tue May 26, 2015 9:10 am

ashleybrown415 wrote:Is there a way for us to fix this behavior, where an incorrect link including a hashtag causes the site to load inside itself?
I can't find that behavior of the site loading inside itself. How can I see that in the browser on your site? What links do I have to click?

What browser name and version do you use?
Regards,
Sorin

<oXygen/> XML Editor Support

sorin_ristache
Posts: 4144
Joined: Fri Mar 28, 2003 2:12 pm

Re: Hashtags in Webhelp output

Post by sorin_ristache » Tue May 26, 2015 9:12 am

ashleybrown415 wrote:Also, could you clarify how it could be that the change you're suggesting would affect Google search results, since Google search crawlers can't & don't read javascript?
Google clarified it on their website. Please see the note about overriding the default page value.
ashleybrown415 wrote:It's hard to imagine how the change could impact how our site reads & routes URL requests.
The change that I suggested will only impact how Google will index the WebHelp pages that are loaded by a URL that includes a hash character.
Regards,
Sorin

<oXygen/> XML Editor Support

Post Reply