Skip to main content
UNA Community Management System UNA Community Management System UNA Community Management System UNA Community Management System
  • Platform
  • Resources
  • Community
  • Pricing
Comment 'Hello Scholar !You m...' to 'Redirect to 'Profile' page after log in/sign in '
Comment to Redirect to 'Profile' page after log in/sign in
    •  ·  LeonidS
    •  ·  2020-06-02T11:23:06+0000

    Hello Scholar !

    You may use this solution to redirect to Dashboard https://una.io/page/cmts-view?sys=bx_forum&id=4477&cmt_id=19513 . For the Profile page it's impossible without a code's changes because there is no known profile id before login.

    • See older replies...
      •  ·  LeonidS
      •  ·  In reply to

        S

        Scholar
      •  ·  2020-06-04T16:20:26+0000

      Sorry, but it needs to track what's wrong, both functions should return the correct current profile id.

      • S

        •  ·  Scholar
        •  ·  In reply to
          LeonidS
        •  ·  2020-06-10T14:20:42+0000

        Sorry, but it needs to track what's wrong, both functions should return the correct current profile id.

        both functions getLoggedId() and bx_get_logged_profile_id() work fine in other areas of the code. it sounds that the problem is with the permalink /unpermalink functions. Have you been able to reproduce this error?
        - where do you want me to track this? the error and access log files have nothing. 

          •  ·  LeonidS
          •  ·  In reply to

            S

            Scholar
          •  ·  2020-06-10T17:39:07+0000

          Then try this variant:

          header('Location: ' . BX_DOL_URL_ROOT . BxDolPermalinks::getInstance()->permalink('page.php?i=view-persons-profile', array('id' => bx_get_logged_profile_id())));

        See more...
        • Features
        • Pricing
        • Forum
        • Blog
        • Market
        • About
        • Copyright
        • Contact
        • Terms
        • Privacy
        • 𝕏
        Search
        UNA Community Management System UNA Community Management System UNA Community Management System UNA Community Management System
      • Platform
        • Features
        • Core CMS
      • Resources
        • Documentation
        • Marketplace
        • Discussions
        • Support Groups
        • API Reference
        • UNA CMS on GitHub
        • Webinars
        • Blog
      • Community
        • Discussions
        • Groups
        • Webinars
      • Pricing
      • Are you sure?
        Please, enter a value here