+ application.settings.objectForKey("appURL") + "?edit=" + session.user().userID(), true);
+ application.settings.objectForKey("appURL") + "wa/default?edit=" + session.user().userID(), true);
    public WOComponent requestDate() {        session().defaultEditingContext().insertObject(newDate);        // put the new date in the user's dates        newDate.setPerson(session.user());        session.user().addToDates(newDate);        try        {            if (session.user().group()==null) throw new Exception("Request was not processed. You are not a member of a group.  Please contact your administrator to be added, then try again.");            // save the new event            session().defaultEditingContext().saveChanges();            // get the admin users for a group            NSArray adminusers = session.user().adminUsers(session.defaultEditingContext(), session.user().group());            if (adminusers != null) {                // send an email to the admin users                WOMailDelivery mailer = WOMailDelivery.sharedInstance();                NSMutableArray adminEmails = new NSMutableArray();                String adminEmailString = "";                NSTimestampFormatter fm = new NSTimestampFormatter((String) application.settings.objectForKey("fullCalendarDateFormat"));                // for each admin user...                for (int i=0; i<adminusers.count(); i++) {                    Person adminUser = (Person) adminusers.objectAtIndex(i);                    if (adminUser.email()!=null && session.user().email()!=null) {                        adminEmailString = adminEmailString + " " + adminUser.name() + ";";                        if (((String) application.settings.objectForKey("emailActivated")).equals("true")) {                            mailer.composePlainTextEmail(session.user().email(), new NSArray(adminUser.email()), null,                                                         "Request from " + session.user().name(), session.user().name() +                                                         " has requested some leave from " + fm.format(newDate.fromDate()) + " to " + fm.format(newDate.toDate())                                                         + " (" + newDate.comment() + ") for " + newDate.totalTime() + " day(s).\n\n" +                                                         "Please check the Leave Management software.\n\nClick here to login and view the request: "                                                         + application.settings.objectForKey("appURL") + "?edit=" + session.user().userID(), true);                        }                    }                }                this.setMessage ("Request added and email sent to" + adminEmailString);            }        }        catch (Exception e) {            this.setMessage(e.getMessage());        }        // initialize a new Date object        newDate = new VacationEvent();        // invalidate objects        session().defaultEditingContext().invalidateAllObjects();        return null;    }