Skip to content

[Bug]: User profile page and Search result page not initalisated on new non english portal #7255

@sachatrauwaen

Description

@sachatrauwaen

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

When a new portal is created the portal UserTabId and SearchTabId is not initalised because it is retrived by english page path.

The path is deferent in the french default portal template for example.

in PortalController.cs
`
var obsoletePortal = this.GetPortal(portalId);
IPortalInfo portal = obsoletePortal;
portal.Description = description;
portal.KeyWords = keyWords;
portal.UserTabId = TabController.GetTabByTabPath(portal.PortalId, "//UserProfile", portal.CultureCode);
if (portal.UserTabId == -1)
{
portal.UserTabId = TabController.GetTabByTabPath(portal.PortalId, "//ActivityFeed", portal.CultureCode);
}

portal.SearchTabId = TabController.GetTabByTabPath(portal.PortalId, "//SearchResults", portal.CultureCode);
`

Related to #3219

Steps to reproduce?

  1. create a new DNN installation (or a new portal in a existing installation) in french language
  2. go to portal setting
  3. You see that Page profil utilisateur and Page de résultats de recherche is empty

Current Behavior

User profile page and Search result page not initalisated

Expected Behavior

User profile page and Search result page is automaticaly initialised on new portal creation.

Relevant log output

Anything else?

No response

Affected Versions

10.3.1 (latest release)

What browsers are you seeing the problem on?

Chrome

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions