Skip to content

Commit

Permalink
Merge pull request #66 from PerimeterX/hotfix/block-page-url-rendering
Browse files Browse the repository at this point in the history
Hotfix/block page url rendering (to master)
  • Loading branch information
ori-gold-px authored Apr 11, 2022
2 parents 72d8eda + 79d128c commit 1f183ef
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [2.3.1] - 2022-04-11

### Fixed

- URLs with query params did not render properly on new block page

## [2.3.0] - 2022-04-10

### Added
Expand Down
10 changes: 5 additions & 5 deletions lib/perimeterx/utils/templates/block_template.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@
window._pxVid = '{{vid}}';
window._pxUuid = '{{uuid}}';
window._pxAppId = '{{appId}}';
window._pxCustomLogo = '{{customLogo}}';
window._pxHostUrl = '{{hostUrl}}';
window._pxJsClientSrc = '{{jsClientSrc}}';
window._pxCustomLogo = '{{{customLogo}}}';
window._pxHostUrl = '{{{hostUrl}}}';
window._pxJsClientSrc = '{{{jsClientSrc}}}';
window._pxFirstPartyEnabled = {{firstPartyEnabled}};
var script = document.createElement('script');
script.src = '{{blockScript}}';
script.src = '{{{blockScript}}}';
document.head.appendChild(script);
script.onerror = function () {
script = document.createElement('script');
script.src = '{{altBlockScript}}';
script.src = '{{{altBlockScript}}}';
script.onerror = window._pxDisplayErrorMessage;
document.head.appendChild(script);
};
Expand Down
2 changes: 1 addition & 1 deletion lib/perimeterx/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module PxModule
VERSION = '2.3.0'
VERSION = '2.3.1'
end
2 changes: 1 addition & 1 deletion px_metadata.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "2.3.0",
"version": "2.3.1",
"supported_features": [
"additional_activity_handler",
"advanced_blocking_response",
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[PerimeterX](http://www.perimeterx.com) Ruby SDK
=============================================================

> Latest stable version: [v2.3.0](https://rubygems.org/gems/perimeter_x)
> Latest stable version: [v2.3.1](https://rubygems.org/gems/perimeter_x)
Table of Contents
-----------------
Expand Down

0 comments on commit 1f183ef

Please sign in to comment.