How to get URL with internal hyperlink to work in email?

R

RogerM

Using Outlook 2007, is it possible to get a hyperlink that has an internal
hyperlink as part of the URL to work properly?

For example, say an email message contains a hyperlink to
http://www.mysite.html#Item1.

If I click on that hyperlink my default browser will open to
http://www.mysite.html. For some reason the internal hyperlink (#Item1)
portion of the URL doesn't get passed to the browser.

Is it possible to make Outlook pass the entire URL to the default browser,
intsead of automatically stripping off the internal hyperlink portion?
 
P

Pat Willener

That must be a feature of Outlook 2007; I have never seen this happening
on any previous version of Outlook.

If you hover your mouse pointer over the hyperlink, what do you see -
the full URL, or the cropped URL?
 
R

RogerM

Let me back up a bit. I just ran a quick test and discovered that the
example I supplied does in fact work: http://www.mysite.html#Item1

I'm actually trying to access an internal hyperlink on a web page that's
stored on the local file system. (I assumed that http:// and file:///
worked the same, but apparently they don't.

So it's file:///c:/mysite.html#Item1 that doesn't work properly. Clicking
on that hyperlink will take me to file:///c:/mysite.html, but not to the
internal link (#Item1) portion of the page.

When I hover over the hyperlink, the full URL path is displayed in the popup
window. When I click on that type of hyperlink within an Outlook 2007 email
message, a Security warning alert window pops up asking if I trust the
destination and whether or not to continue. Selecting "Yes" results in the
page opening in my default browser, but just to the base URL.

~Roger
 
P

Pat Willener

The file:// protocol is indeed different from html:// - it will simply
open the file in the specified path, but not rendering any html, even
thought the file type is html. I don't think that there is anything you
can change.
 
P

Pat Willener

P.S. I meant http: below, not html:

Pat said:
The file:// protocol is indeed different from html:// - it will simply
open the file in the specified path, but not rendering any html, even
thought the file type is html. I don't think that there is anything you
can change.
 
R

RogerM

So, there's no way to get Outlook to pass the #Item1 portion of a hyperlink
to a web brower if the file being accessed is an html file?
 
P

Pat Willener

I am even surprised that it is opening the file at all, as the # portion
is not part of the file name. Also, I don't think that Outlook is doing
much of it; it will just pass it on to Windows.
 
R

RogerM

You may be right, as I haven't been able to open a locally stored html file
to the internal hyperlink section in any application besides a browser and
the command line.

I'm surprised that Outlook, Word, etc., won't work though since it can be
done directly from the command line.

Perhaps I could use a macro that would open the hyperlink using a command
line argument instead. I suppose one could just parse the message body to
obtain the hyperlink as a variable, then pass that variable to a command
line statement. Seems like it would work in theory anyway.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top