Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6603391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:00:15+00:00 2026-05-25T19:00:15+00:00

I have an exit page that informs users that they are leaving my site.

  • 0

I have an exit page that informs users that they are leaving my site. How do I capture the intended url from the referring page and send the user to it once they’ve acknowledged on the exit page that they’re aware they’re leaving my site and wish to continue to their destination? My current setup works with an absolute link but not with a relative path.

this works:

href="http://acme.com/company/brand/leaving/?url=http://www.about.info/choices/

this doesn’t:

href="../COMPANY/BRAND/leaving/?url=http://www.about.info/choices/"

the continue button triggers the following function:

function gbye(){
    var url = window.location.toString();
    var url_arr=  url.split("?url=");   

if(url_arr.length>1)
{

    try
    { 
         window.location = url_arr[1]; 

    }
    catch (e)
    {
    }
}

    return false;
}

can anyone explain why the href with the relative path doesn’t work (returns a directory list) and how I can make the relative path work?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T19:00:16+00:00Added an answer on May 25, 2026 at 7:00 pm

    Most servers are running under a Linux environment, where the filesystem is case-sensitive, ie file names with different cases are treated different.

    If the first link worked correctly, use ../company/brand/leaving/?url=.... I recommend using a / (absolute root) instead of ../, because you won’t have to edit your files when you move the files to a different directory, when using /.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a PHP page that will collect mp3 links from downloads.nl. The result
I have a simple PHP page (for testing) that simply calls header(Location: http://www.example.com );exit;
I have a lock in my c# web app that prevents users from running
I have made a page that is suppose to be a common exit point
I have a php page that parses some xml text. That text comes from
I found here that to restore brightness on app exit you have to use
I have a script that I want to exit early under some condition: if
I have a simple assembly code file called exit.s that looks like the following:
i have a menu that contains just one item. Button exit; @Override public boolean
I have a session that I gave to users that has matching password =

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.