Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-726

Create new "m_CurrentPageLink" tag to return current Page URL

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.1.1-B2
    • Fix Version/s: 5.2.0-B1
    • Component/s: Template System
    • Labels:
      None

      Description

      Create new <inp2:m_CurrentPageLink skip_query="1"/> tag to return current Page URL (without re-assembling it). That "skip_query" param is optional and will skip the ?QUERY part.

      For speed purposes use:

      1. with query: $_SERVER['REQUEST_URI']
      2. without query: preg_replace('/?' . preg_quote($_SERVER['QUERY_STRING'], '/') . '$/', '', $_SERVER['REQUEST_URI'])

      Note: as you can see no domain is added for faster performance

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                dmitry Dmitry Andrejev [Intechnic]
                Developer:
                Erik Snarski [Intechnic]
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: