Skip to content

Commit e194554

Browse files
committed
Fixed schedule URLs for download feature
1 parent 54cee5f commit e194554

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

iHW-iOS/iHW/iHW/IHWDownloadScheduleViewController.m

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ - (void)viewDidLoad
4545
self.topSpaceConstraint.constant = 0;
4646
}
4747
//Load the login page
48-
[self.webView loadRequest:[[NSURLRequest alloc] initWithURL:[NSURL URLWithString:@"https://www.hw.com/students/Login/tabid/2279/Default.aspx?returnurl=%2fstudents%2fSchoolResources%2fMyScheduleEvents.aspx"]]];
48+
[self.webView loadRequest:[[NSURLRequest alloc] initWithURL:[NSURL URLWithString:@"https://www.hw.com/students/Login?returnurl=/students/SchoolResources/MyScheduleEvents.aspx"]]];
4949
}
5050

5151
- (void)viewWillAppear:(BOOL)animated {
@@ -59,7 +59,8 @@ - (IBAction)backPressed:(id)sender {
5959

6060
- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType {
6161
//Make sure that the UIWebView can only access these three URLs
62-
BOOL result = ([request.URL isEqual:[NSURL URLWithString:@"https://www.hw.com/students/Login/tabid/2279/Default.aspx?returnurl=%2fstudents%2fSchoolResources%2fMyScheduleEvents.aspx"]]
62+
BOOL result = ([request.URL isEqual:[NSURL URLWithString:@"https://www.hw.com/students/Login?returnurl=/students/SchoolResources/MyScheduleEvents.aspx"]]
63+
|| [request.URL isEqual:[NSURL URLWithString:@"http://www.hw.com/students/School-Resources/My-Schedule-Events"]]
6364
|| [request.URL isEqual:[NSURL URLWithString:@"http://www.hw.com/students/SchoolResources/MyScheduleEvents.aspx"]]
6465
|| [request.URL isEqual:[NSURL URLWithString:@"https://www.hw.com/students/SchoolResources/MyScheduleEvents.aspx"]]);
6566
if (result)
@@ -71,11 +72,11 @@ - (void)webViewDidFinishLoad:(UIWebView *)webView {
7172
[(IHWAppDelegate *)[UIApplication sharedApplication].delegate performSelectorOnMainThread:@selector(hideNetworkIcon) withObject:nil waitUntilDone:NO];
7273
NSURL *url = webView.request.mainDocumentURL;
7374
//NSLog(@"URL did finish load: %@", url.description);
74-
if ([url isEqual:[NSURL URLWithString:@"https://www.hw.com/students/Login/tabid/2279/Default.aspx?returnurl=%2fstudents%2fSchoolResources%2fMyScheduleEvents.aspx"]]) {
75+
if ([url isEqual:[NSURL URLWithString:@"https://www.hw.com/students/Login?returnurl=/students/SchoolResources/MyScheduleEvents.aspx"]]) {
7576
//If the login page just loaded, show the UIWebView and prompt the user to log in.
7677
self.webView.hidden = NO;
7778
self.loginPromptLabel.hidden = NO;
78-
} else if ([url isEqual:[NSURL URLWithString:@"http://www.hw.com/students/SchoolResources/MyScheduleEvents.aspx"]]) {
79+
} else if ([url isEqual:[NSURL URLWithString:@"http://www.hw.com/students/School-Resources/My-Schedule-Events"]]) {
7980
//If the user just logged in and the "My Schedule" page just loaded, hide the UIWebView and prompt.
8081
self.webView.hidden = YES;
8182
self.loginPromptLabel.hidden = YES;

iHW-iOS/iHW/iHW/iHW-Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@
3636
<key>CFBundlePackageType</key>
3737
<string>APPL</string>
3838
<key>CFBundleShortVersionString</key>
39-
<string>1.1.2</string>
39+
<string>1.1.4</string>
4040
<key>CFBundleSignature</key>
4141
<string>????</string>
4242
<key>CFBundleVersion</key>
43-
<string>1.1.2</string>
43+
<string>1.1.4</string>
4444
<key>LSApplicationCategoryType</key>
4545
<string>public.app-category.education</string>
4646
<key>LSRequiresIPhoneOS</key>

0 commit comments

Comments
 (0)