In-Portal Issue Tracker

Welcome to the In-Portal Open Source CMS Issue Tracker! This is a central management / tracking tool for all types of tasks / issues / bugs for the In-Portal Project. Before reporting any issues, please make sure to read the Guide into Issue Tracker and How to Properly Test and Report Bugs!

View Revisions: Issue #899 All Revisions ] Back to Issue ]
Summary 0000899: Create new "m_CurrentPageLink" tag to return current Page URL
Revision 2011-09-26 04:02:55 by alex
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
Revision 2011-09-24 22:42:34 by alex
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:

Current DomainName

_SERVER["SCRIPT_NAME"] - script name

_SERVER["QUERY_STRING"] - query


By default it will return result of DomainName . _SERVER["SCRIPT_NAME"] . '?' . _SERVER["QUERY_STRING"];



Web Development by Intechnic
In-Portal Open Source CMS
In-Portal Open Source CMS
Copyright © 2000 - 2009 MantisBT Group

Powered by Mantis Bugtracker