can the Favorite refer to the home page instead of the URL of the page he is currently on ?

M

Mike Kelly

Is there a command I can use so that if a user is on my site, and adds my
page to his favorites, but he is not on the home page, that the favorite
will refer to the home page instead of the URL of the page he is currently
on ?

Thanks,


P.S. I just upgraded from Front Page 2000 to 2003. It saves me alot of
time not to have code things like inline frames and layers by hand. It was
worth the $100 bucks for the upgrade.
 
J

Jack Brewster

Mike,

I don't think there is a way to catch a user adding a favorite and change
it's value. Using server side scripting such as PHP or ASP (and perhaps
JavaScript, but I'm not sure) you can detect where a user came from when
they load a page. If the referrer _isn't_ another page on your site (i.e.
Favorites link or link from another site) you could redirect those users to
the homepage.

My big concern with redirecting like this is that if someone links to, or
adds a Favorite to, a specific page on your site, it's probably because they
want to go back to _that_ page.

By automatically redirecting visitors in this manner, you could experience
negative repercussions ranging from confused or irritated users up to losing
sales (if your site is for business) or possibly turn away traffic.

The fact that this could break links coming into your site (redirecting to
home page) may also be a problem.

Hope that helps
 
Top