RoryIsNotACabbage Posted June 19, 2022 Share Posted June 19, 2022 (edited) I have no idea what I'm doing wrong here I've added custom notifications to some scripts and they work brilliantly, but I'm trying to add a link to those notifications with -l "my/link/" and clicking them does absolutely nothing Also, sort of related, does anyone know a link to use to go to a specific user scripts log page? I feel like I need to put more information here but there really isn't any. I've tried it with -l as the only option, I've tried putting only "/Settings/Userscripts/", I've tried "http://IP/Settings/Userscripts/". Nothing links Edited June 19, 2022 by RoryIsNotACabbage Quote Link to comment
Squid Posted June 19, 2022 Share Posted June 19, 2022 That works just fine. Probably be best to post the actual command you're using Quote Link to comment
RoryIsNotACabbage Posted June 19, 2022 Author Share Posted June 19, 2022 32 minutes ago, Squid said: Probably be best to post the actual command you're using /usr/local/emhttp/webGui/scripts/notify - l "/Settings/Userscripts" Plus the other variations I mentioned I get the notification in the Web gui, it just doesn't take me anywhere when I click it Quote Link to comment
Squid Posted June 19, 2022 Share Posted June 19, 2022 You have a space between the dash and the l Quote Link to comment
RoryIsNotACabbage Posted June 19, 2022 Author Share Posted June 19, 2022 Sorry I was replying from my phone, when I done it in the terminal there was no space Quote Link to comment
Squid Posted June 19, 2022 Share Posted June 19, 2022 That exact command works for me. Quote Link to comment
RoryIsNotACabbage Posted June 19, 2022 Author Share Posted June 19, 2022 That's interesting. I've tried many many times and nothing. Thanks for the help anyway Quote Link to comment
RoryIsNotACabbage Posted June 19, 2022 Author Share Posted June 19, 2022 Okay so it seems the link doesn't work when your notifications are set to summarized, which I just recently changed to. Setting it back to detailed works perfectly. Possibly a bug? Quote Link to comment
RoryIsNotACabbage Posted June 27, 2022 Author Share Posted June 27, 2022 On 6/19/2022 at 12:14 PM, RoryIsNotACabbage said: Also, sort of related, does anyone know a link to use to go to a specific user scripts log page? Hey @Squid, is there an easy fix for this? I started out with -l "javascript:showLog(\"$script\")" setting script to the relevant name earlier, which is perfect when you're on the userscripts page but obviously fails when somewhere else. And no variation of /plugins/user.scripts/showLog.php&arg1='+script I've tried has worked, with or without the ,'Log Information',800,1200 at the end and also as a regular link and as a javascript:openWindow Further than this I'm a little stumped Quote Link to comment
Squid Posted June 27, 2022 Share Posted June 27, 2022 It's a link designed to go to a page in the UI. eg /Settings or /Main trying to leverage it for running a script etc isn't really what it was designed for Quote Link to comment
RoryIsNotACabbage Posted June 28, 2022 Author Share Posted June 28, 2022 Oh well, thanks for the info anyway Quote Link to comment
itimpi Posted September 9, 2023 Share Posted September 9, 2023 On 6/28/2022 at 12:56 AM, Squid said: It's a link designed to go to a page in the UI. Any way to get the link to open in a new page and/or tab? I was wanting to set up a link that goes to a section of the online documentation and it would be better if this left the current GUI page unchanged. Quote Link to comment
Squid Posted September 9, 2023 Share Posted September 9, 2023 No. It has to be an internal page. Quote Link to comment
itimpi Posted September 9, 2023 Share Posted September 9, 2023 2 hours ago, Squid said: No. It has to be an internal page. I found it can be an external link to the User Manual, but that it loads into the tab that is currently displaying the GUI. That was why I asked about a way to force a new tab. I now need to decide if the value of displaying the relevant manual page out-weighs the downside of the user now having to reload the Unraid GUI into another tab. Quote Link to comment
BRiT Posted September 9, 2023 Share Posted September 9, 2023 1 hour ago, itimpi said: I found it can be an external link to the User Manual, but that it loads into the tab that is currently displaying the GUI. That was why I asked about a way to force a new tab. I now need to decide if the value of displaying the relevant manual page out-weighs the downside of the user now having to reload the Unraid GUI into another tab. Have you tried embeding the contents of the User Manual page inside a div in the current page using javascript? Quote Link to comment
itimpi Posted September 9, 2023 Share Posted September 9, 2023 4 hours ago, BRiT said: Have you tried embeding the contents of the User Manual page inside a div in the current page using javascript? The link is via clicking on a notification - I do not see how embedding the link in the page can be leveraged from a notification? I wonder if it can be embedded in the text part of a notification in some way - might need to try that next. 1 Quote Link to comment
BRiT Posted September 10, 2023 Share Posted September 10, 2023 3 hours ago, itimpi said: The link is via clicking on a notification - I do not see how embedding the link in the page can be leveraged from a notification? I wonder if it can be embedded in the text part of a notification in some way - might need to try that next. Ah yeah, I lost that context. Quote Link to comment
Recommended Posts
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.