I just installed this great package on a 4.5 site, without realising it didn't support version 4.5. I just tweaked the code slightly to support 4.5, and thought I'd share it.
Here the code for the main redirect class
private bool m_cacheUrl; private int m_redirectId;
public bool CacheUrl { get { return this.m_cacheUrl; } }
public int redirectID { get { return this.m_redirectId; } }
public Redirect301Handler() { this.m_cacheUrl = true; this.m_redirectId = -1; }
Thanks for the updated code, much appreciated! Glad you got it working.
I did actually update the code for v4.5 - which its now going to be part of uComponents (in the v2 release). I will get around to releasing it as a standalone package too, as uComponents might seem a little overkill if you only need a small part of it!
We're aiming for a v2 release of uComponents early next week. My thinking was that a lot of people are using uComponents as a "must have" package, so seemed a good idea to include some of the smaller classes/components in there too.
Still I will release this 301 package as a standalone too ... just need to keep the codebases in sync! ;-)
4.5 Compatibility
I just installed this great package on a 4.5 site, without realising it didn't support version 4.5. I just tweaked the code slightly to support 4.5, and thought I'd share it.
Here the code for the main redirect class
Hi Chris,
Thanks for the updated code, much appreciated! Glad you got it working.
I did actually update the code for v4.5 - which its now going to be part of uComponents (in the v2 release). I will get around to releasing it as a standalone package too, as uComponents might seem a little overkill if you only need a small part of it!
Cheers, Lee.
Cool, I didn't know it was moving into uComponents, that's great news.
I now install uComponets with every new site build, this is a great addition to it.
Cheers, Chris
We're aiming for a v2 release of uComponents early next week. My thinking was that a lot of people are using uComponents as a "must have" package, so seemed a good idea to include some of the smaller classes/components in there too.
Still I will release this 301 package as a standalone too ... just need to keep the codebases in sync! ;-)
Cheers, Lee.
is working on a reply...