From: Jay Freeman (saurik) Date: Thu, 24 Feb 2011 04:46:30 +0000 (-0800) Subject: Use a single URL for HTML5 Offline routing. X-Git-Tag: v1.1.0%b1~217 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/90351d9379a22db46dfe9d7d18ab720a468f3100 Use a single URL for HTML5 Offline routing. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 10fe44bf..928558e0 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -4855,7 +4855,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { [NSNumber numberWithInteger:[database_ fetcher].PartialPresent()], @"resuming", nil]; - [self setURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@/confirm/", UI_]]]; + [self setURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@/#!/confirm/", UI_]]]; [[self navigationItem] setLeftBarButtonItem:[[[UIBarButtonItem alloc] initWithTitle:UCLocalize("CANCEL") @@ -5065,7 +5065,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { progress_ = [[[CydiaProgressData alloc] init] autorelease]; [progress_ setDelegate:self]; - [self setURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@/progress/", UI_]]]; + [self setURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@/#!/progress/", UI_]]]; [scroller_ setBackgroundColor:[UIColor blackColor]]; @@ -5985,7 +5985,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { database_ = database; buttons_ = [[NSMutableArray alloc] initWithCapacity:4]; name_ = [[NSString alloc] initWithString:name]; - [self setURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@/package/#!/%@", UI_, name_]]]; + [self setURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@/#!/package/%@", UI_, name_]]]; } return self; } @@ -6422,7 +6422,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { - (id) init { if ((self = [super init]) != nil) { - [self setURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@/home/", UI_]]]; + [self setURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@/#!/home/", UI_]]]; } return self; } @@ -6481,7 +6481,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { - (id) init { if ((self = [super init]) != nil) { - [self setURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@/manage/", UI_]]]; + [self setURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@/#!/manage/", UI_]]]; } return self; }