Grace

Topic: Redirection after application

Hy!

I'm new to the jobberbase development and want to use this open system as a base for future portals.
Thanks for your great work and lots of time you spend into this project!

I found a problem with the usage of HTTP-REFERER after the application,
because I had deactivate this function in my browser and stopped at an blank white page, because I should redirect to my referer. (The Job-Detail page)

That was not a critical problem, because the application was send successfully, but unaesthetic. smile

I have solved the problem with replacing the last 3 lines in the file /page_apply.php with the following lines:

Code:

    if(!empty($_SERVER['HTTP_REFERER'])) {
        $ref = $_SERVER['HTTP_REFERER'];
    } else {
        $ref = "/job/".$job_id."/success/";
    }
    redirect_to($ref);
    exit;

I hope you understand my german english an I could make jb a little bit better. smile

bye,
Grace

hobo

Re: Redirection after application

The line:

Code:

$ref = "/job/".$job_id."/success/";

should be changed to:

Code:

$ref = "/".JOB_URL."/".$job_id."/success/";

for jobberBase 1.9.1, if you are changing the "job" to something else via admin seo settings.