Fixes Glossary Term and Tag Redirection

This commit is contained in:
mohitdeuex 2024-03-22 14:50:06 +05:30
parent 39b645a0ea
commit e52156aa94

View File

@ -83,6 +83,18 @@ public interface MessageDecorator<T> {
link.getEntityType(), link.getEntityFQN(), "profiler?activeTab=Data%20Quality");
}
// Glossary Term
if (entityType.equals(Entity.GLOSSARY_TERM)) {
// Glossary Term is a special case where the URL is different
return getEntityUrl(Entity.GLOSSARY, fqn, "");
}
// Tag
if (entityType.equals(Entity.TAG)) {
// Tags need to be redirected to Classification Page
return getEntityUrl("tags", fqn.split("\\.")[0], "");
}
return getEntityUrl(entityType, fqn, "");
}