Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • fusiondirectory fusiondirectory
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 33
    • Issues 33
    • List
    • Boards
    • Service Desk
    • Milestones
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • fusiondirectoryfusiondirectory
  • fusiondirectoryfusiondirectory
  • Issues
  • #6057
Closed
Open
Issue created Dec 10, 2019 by bmortier@bmortierMaintainer

Methods for getting current URL and host would be useful

A few plugins need the current URL, or the current hostname (Both TOTP and Webauthn needs this).

To avoid code duplication and inconsistencies, core should provide functions to get:

  • Current hostname
  • Current URL
  • Current URL without last part (to build absolute link to other pages)
  • Current base URL? (Not easy to find out, but if we want to add url rewrite it will be useful)
Assignee
Assign to
Time tracking