URL Suffixes & Query Strings

Last Updated: 01 Jul 2020

There are a number of URL suffixes and query strings that you can use in Matrix to either make the page be presented in a certain way, or to perform some type of action.

The table below lists all of the available suffixes and query strings that are available. Note that some of these are only available under certain conditions (such as what permission access you have) and some also depend on the version of Squiz Matrix you are on.

Suffixes

Suffixes are strings that can be added to the end of a URL, either on the root of the site domain or on a particular page URL. For example, https://www.example.com/_admin or https://www.example.com/page/_admin

SuffixDescription
/_adminAccess the Admin interface of the Squiz matrix system. If entered on a particular page URL, the Admin interface will also attempt to load the asset under that URL by default.
/_editAccess the Edit mode interface of a specific site or page.
/_loginAccess the login screen for a particular site or page. This can be used either when you are already logged in or when you are un-authenticated.
/_editplusapiThe URL of the Edit+ API JavaScript file. This is used by the Edit+ extension to make web service calls to power the interface functionality.
/_nocacheUse this to serve the page without Matrix cache. This will also force Matrix to send a Cache-Control: no-store, no-cache header to ensure the page doesn't get cached in any accelerator cache or the user's browser cache. Note that this will not re-populate the cache with the un-cached content, use /_recache for that.
/_noproxycacheSimilar to the /_nocache suffix, except it won't force Matrix to generate a fresh page with no Matrix cache. It will just make sure that Matrix sends a Cache-Control: no-store, no-cache header when viewing the page.
/_recacheThis has the same affect as /_nocache, but it will also re-prime the internal Matrix cache for that particular page. This means that if you then visit the page again without a suffix, you will see a fresh copy of the page.
/_performanceAccess Performance Mode, on the current page. This will show you all the assets that were used to build the current page and how many internal PHP requests were made in doing so.

Query Strings

Query strings are usually used with a parameter and value combination and can be used in conjunction with URL suffixes. Some query strings also don't need a value however and simply just consist of the parameter.

Query StringDescription
?SQ_ACTION=view_liveShow the Live version of an asset that is currently in a Safe Edit type status.
?SQ_ACTION=diffShow the difference between the Live version of an asset and its Safe Edit version, highlighting which bits of the content has been added and removed.
?SQ_ACTION=login&FORCE_BACKUP_LOGIN=1Show the backup login screen to log in to the Squiz Matrix system.
?SQ_ACTION=logoutInstantly log out of the Squiz Matrix system.
?force=trueUsed on OAuth 2 Token assets to force the generation of a new access token.
?SQ_ASSET_CONTENTSShow the contents of the page without any Design applied. You can add asset IDs to this URL parameter to specify the content containers to print for example: ?SQ_ASSET_CONTENTS=111,222. Note that you can't specify a container that is being nested in the current page.
?SQ_ASSET_CONTENTS_RAWShow the contents of the page without any Design or Paint Layout applied. You can also pass individual content container IDs to this parameter, similar to the ?SQ_ASSET_CONTENTS parameter.
?SQ_DISABLE_SERVER_JSDisables all JavaScript using the runat="server" method from running on the server.
You must have write access to the content component for this query string to work.
See the Server Side JavaScript documentation for more details about this query string.
?SQ_VIEW_SERVER_JSView the full output of the JavaScript code sent to the JavaScript engine in Matrix.
Use this query string to help with debugging your frontend JavaScript code.
See the Server Side JavaScript documentation for more details about this query string. 
?SQ_PAINT_LAYOUT=1234View the current page with a particular Paint Layout applied where 1234 is the asset ID of the Paint Layout.
?SQ_PAINT_LAYOUT_NAME=custom_nameView the current page with a Paint Layout applied based on the custom paint layout name setting on the Paint Layouts screen of the asset.
?SQ_DESIGN_NAME=custom_nameView the current page with a Design applied based on the custom design name setting on the Settings screen of the asset.

Previous Chapter Next Chapter