Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Link to Bookmark Disappears

Posted on 2014-01-29
2
474 Views
Last Modified: 2014-02-02
I am creating an email blast for a client, and we want to land on a particular bookmark on a page. So I am linking to http://www.mesila.org/show.asp?PID=17#Video2
However, when the page opens up, the beginning/top of the page is displayed and after a few moments the #Video2 disappears from the URL bar.

I thought this might have to do with www.addthis.com, which has JavaScript that modifies the URL. But the same thing happens when I remove this code. It also happens in both FF and MSIE. It does not happen if I am already on the page, and I just add the #Video1 or #Video2 to the URL bar.

Why might this be happening? How can I link to these bookmarks properly?

Thank you.
0
Comment
Question by:Lev Seltzer
2 Comments
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 500 total points
ID: 39817881
Looks like this frame breaker code:

<script type="text/javascript">
var thisPage = "http://www.mesila.org" + self.location.pathname + self.location.search;
if (top.location != thisPage)
top.location = thisPage;
</script>

is causing the redirection.

You need to add self.location.hash to the string for the page name.

Cd&
0
 

Author Closing Comment

by:Lev Seltzer
ID: 39827686
thank you. I did not realize this code was there, and I decided to simply remove it. I would need to put in some extra logic before putting in self.location.hash, because most pages would NOT have a hash code.

Thank you.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question