import java.io.IOException;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
+import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLDecoder;
import java.util.AbstractMap;
}
}
+ if (isPool(source)) {
+ try {
+ return new URL(source.toString().replace("/pool/show/", "/pools/"));
+ } catch (MalformedURLException e) {
+ }
+ }
+
return super.getCanonicalUrl(source);
}
}
private boolean isPool(URL url) {
- return url.getPath().startsWith("/pools/");
+ return url.getPath().startsWith("/pools/") || url.getPath().startsWith("/pool/show/");
}
// set will be renamed into search by canonical url