Skip to content
Snippets Groups Projects
Commit d42db835 authored by srosse's avatar srosse
Browse files

OO-722: business path and REST URL for the catalog site

parent 92bc54a6
No related branches found
No related tags found
No related merge requests found
......@@ -97,6 +97,8 @@ public class RepositoryModule extends AbstractSpringModule {
NewControllerFactory.getInstance().addContextEntryControllerCreator(CatalogEntry.class.getSimpleName(),
new CatalogContextEntryControllerCreator(this));
NewControllerFactory.getInstance().addContextEntryControllerCreator("Catalog",
new CatalogContextEntryControllerCreator(this));
NewControllerFactory.getInstance().addContextEntryControllerCreator("CatalogAdmin",
new SiteContextEntryControllerCreator(CatalogAdminSite.class));
......
......@@ -81,6 +81,13 @@ public class CatalogSiteMainController extends BasicController implements Activa
return;
}
ContextEntry entry = entries.get(0);
String type = entry.getOLATResourceable().getResourceableTypeName();
if("Catalog".equalsIgnoreCase(type)) {
//remove the Catalog/0
entries = entries.subList(1, entries.size());
}
stackPanel.popUpToRootController(ureq);
nodeController.activate(ureq, entries, state);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment