Skip to content

Instantly share code, notes, and snippets.

@sminnee
Created July 17, 2017 21:54
Show Gist options
  • Select an option

  • Save sminnee/61edb321955bf0d6638d3aba6bedeceb to your computer and use it in GitHub Desktop.

Select an option

Save sminnee/61edb321955bf0d6638d3aba6bedeceb to your computer and use it in GitHub Desktop.
diff --git a/src/Core/Startup/ParameterConfirmationToken.php b/src/Core/Startup/ParameterConfirmationToken.php
index 45b3630..7a88783 100644
--- a/src/Core/Startup/ParameterConfirmationToken.php
+++ b/src/Core/Startup/ParameterConfirmationToken.php
@@ -185,8 +185,7 @@ class ParameterConfirmationToken
protected function currentURL()
{
return Controller::join_links(
- BASE_URL,
- '/',
+ BASE_URL ?: '/',
$this->request->getURL(false)
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment