AnythingSlider icon indicating copy to clipboard operation
AnythingSlider copied to clipboard

Page title being changed to the # hash-tag within IE8

Open jodriscoll opened this issue 12 years ago • 4 comments

As the title states, when a user is viewing the page where the slideshow is active, once the hashtag is appended to the URL, it also updates the title for the page. This results in a user favoriting a page with the title "#&panel1-1" instead of the intended title the page is given within the head tag.

title-bar-issue

Also, I noticed that at times, the title has a duplicate # hash tag result. Not sure if this is a bug, but as you can see by the address bar, only a single # hashtag is present within the URL.

jodriscoll avatar Mar 20 '13 21:03 jodriscoll

Wow weird that I've never seen that before... it seems to happen in IE10 as well.

I'll look into this, but since it looks like your site is live, I think the best solution would be to just disable the hash tags by setting the hashTags option to false.

Mottie avatar Mar 20 '13 22:03 Mottie

It looks like it's an IE bug that only occurs when there is embedded flash video on the page (ref).

The only solution, for now, is to set the page title after the page loads:

$(window).load(function(){
  setTimeout(function() {
    window.document.title = "Some title";
  }, 1000);
});

Mottie avatar Mar 20 '13 22:03 Mottie

Darn! I wonder if their is a way to capture the title tag from the head and have it rewrite once the anythingSlider has been created. Also, one click, it runs a function that established the title tag once again to prevent the hashtag appended text from changing the title within IE.

Thanks for the advice, I actually found the same article yesterday but wanted to hear from your end before I implemented it.

Thanks!

jodriscoll avatar Mar 21 '13 13:03 jodriscoll

Go for it.

Mottie avatar Mar 21 '13 14:03 Mottie