Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Plugin] GUI Search

Featured Replies

On 12/5/2024 at 6:05 PM, kboxvegas said:

I don't know if it is coming from the search webgui plugin or the Tailscale plugin but the links are broken when searching tailscale as it is adding "/preclear" to the URL's so it is malformed like "http://192.168.X.X/preclear/Settings/Tools/Tailscale" but the plugin opens correctly from the plugins page.


It's definitely broken ... If I start the search from the Dashboard, it's still adding in /preclear which breaks the destination URL:
 

http://192.168.1.200/preclear/Settings/Tools/Scheduler


EDIT:  Removing the Unassigned Devices Preclear plugin fixes it.  That plugin was just updated so I suspect something in that update broke things.  
 

unassigned.devices.preclear

2024.12.05

  Fix: Change some php variables to constants that don't need to be variables.

  Fix: Page layout changes.




image.thumb.png.8116e36c628bdc9f9f368b90c7508180.png

Edited by cscoppa

  • Replies 85
  • Views 17.5k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Yesterday's update changes things around a bit.   The search bar is no longer present under black / white themes.  Instead a search icon is present at the top right.  Press it and the sea

  • Glad you found, it, I'm still searching for it. Help?  

  • fixed fixed

Posted Images

  • Author

@dlandon

 

^^^ Version I tested on had "Preclear" with a capital P. Those screenshots are showing a lowercase "p"

14 hours ago, Squid said:

@dlandon

 

^^^ Version I tested on had "Preclear" with a capital P. Those screenshots are showing a lowercase "p"

So far I am unable to make it happen.  In the last release of UD Preclear, I changed $docroot and $plugin into constants and not variables.  Could either of these changes have affected the search?  None of the other changes in UD Preclear should have affected it.

 

16 hours ago, cscoppa said:

It's definitely broken ... If I start the search from the Dashboard, it's still adding in /preclear which breaks the destination URL:

What were you doing on the Preclear page when this happened?

5 minutes ago, dlandon said:

What were you doing on the Preclear page when this happened?


I wasn't on that page at all, just the dashboard .... searched for Mover, took the first hit, and got the result I posted above.

I should add I haven't used Preclear in a LONG time, since I first setup my server a few years ago.

Edited by cscoppa

  • Author
21 minutes ago, dlandon said:

Could either of these changes have affected the search?

are you changing $_SERVER['REQUEST_URI']?

 

Edit:  The problem @dlandon is L27 of lib.php 

 

Because you are including lib.php in Preclear footer.page, you are changing the URI for every single page in the UI, which is going to also impact all translations as any plugin won't be able to get to their own translations.  What you'd want to do would be to do something akin to 

$_SERVER['REQUEST_URI'] = $_SERVER['REQUEST_URI'] . "/Preclear";

 

or alternatively save the original value and restore it at the end of lib.php

 

 

Your lower case "p" as existing may properly reference your .txt file, but it also messes up the search becasue "preclear.page" doesn't exist but "Preclear.page" does

  • Author
48 minutes ago, dlandon said:

Interesting.  It's been that way forever.

Hit and miss as to whether it affects anything.  (It works fine on my system, but fails on buddy's).  Or another option (likely the best) is to move the translations into translations.txt instead since the .page file is inserting itself everywhere.

11 hours ago, Squid said:

Hit and miss as to whether it affects anything.  (It works fine on my system, but fails on buddy's).  Or another option (likely the best) is to move the translations into translations.txt instead since the .page file is inserting itself everywhere.

According to the language documentation:

"When a PHP script is called by a JavaScript post or get operation, it will not have any translations information, and hence it needs to include the translations module in order to be able to make translations."

 

So I've moved it and it should not be loaded on every page now.  Hopefully, this will address this situation.

  • 4 months later...

Hey so I've noticed that the plugin stopped working when I updated to unraid OS 7. Does this happen only to me or are you guys having the same problem? Thank you.

  • Author
On 4/16/2025 at 2:53 PM, ANIMATEK said:

Hey so I've noticed that the plugin stopped working when I updated to unraid OS 7. Does this happen only to me or are you guys having the same problem? Thank you.

Its included in v7+

14 hours ago, Squid said:

Its included in v7+

Please excuse my retardness.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.