๐Ÿ‡ธ๐Ÿ‡ฎSlovenia @paranojik

Account created on 11 March 2005, over 19 years ago
#

Merge Requests

Recent comments

๐Ÿ‡ธ๐Ÿ‡ฎSlovenia paranojik

Proposed solution implemented and ready for review.

๐Ÿ‡ธ๐Ÿ‡ฎSlovenia paranojik

paranojik โ†’ changed the visibility of the branch 3485818-rebuild-workspace-menu to hidden.

๐Ÿ‡ธ๐Ÿ‡ฎSlovenia paranojik

Fixed the nit @plach. Thanks!

๐Ÿ‡ธ๐Ÿ‡ฎSlovenia paranojik

I think this is a very good enhancement. Thanks @ajits!
Marking RTBC.

๐Ÿ‡ธ๐Ÿ‡ฎSlovenia paranojik

Looks good now.
Thanks @ajits.

Marking RTBC.

๐Ÿ‡ธ๐Ÿ‡ฎSlovenia paranojik

Seems to work fine, however the redirect source field help text seems to be inaccurate.
Enter an internal url regex path with named captures. For example: page\/old\/(?P<nr>[0-9a-z]+). Please be aware that certain characters such as "$", or "?" need to be escaped due to it being part of a replacement string.
The special characters are to be escaped because they're part of the regular expression used for matching not because they're part of a replacement string.

๐Ÿ‡ธ๐Ÿ‡ฎSlovenia paranojik

Seems to be working as expected. I'm not sure if a setting for this functionality is actually needed @LaravZ.

@ajits: You did leave an unused variable in there, though

diff --git a/src/Form/RegexRedirectForm.php b/src/Form/RegexRedirectForm.php
index a39041c..fdeb385 100644
--- a/src/Form/RegexRedirectForm.php
+++ b/src/Form/RegexRedirectForm.php
@@ -217,7 +217,6 @@ class RegexRedirectForm extends ContentEntityForm {
     // Set the regex delimiter in code to avoid issues with leading slash.
     $delimiter = '/';
     $source_regex = $delimiter . trim($source_path) . $delimiter;
-    $redirect_regex = str_replace('internal:', '', $redirect_uri);
 
     if (preg_match($source_regex, '') === FALSE) {
       $form_state->setErrorByName('regex_redirect_source', $this->t('The regex redirect source must be a regex pattern.'));
Production build 0.71.5 2024