<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Splunk Bookmarks not working in Firefox and Chrome in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-Bookmarks-not-working-in-Firefox-and-Chrome/m-p/385259#M6429</link>
    <description>&lt;P&gt;I figured out a work around for the .%2A problem.&lt;BR /&gt;
In my search, I just added an eval statement to convert %2A to .*  The below statement checks my multiselect for %2A, &lt;EM&gt;, or All and sets matcher to .&lt;/EM&gt; if they match.  If not, just use what is in the multiselect.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval matcher = if(match($multiselect1$, "\((\*|\.?%2A|All)\)"), ".*", $multiselect1$)
| where match(field, matcher)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I still have the 307 error problem with my js and css the first time I navigate to my bookmark in a fresh browsing session (like in private or incognito).  Any suggestions would help!&lt;/P&gt;</description>
    <pubDate>Thu, 27 Sep 2018 18:08:17 GMT</pubDate>
    <dc:creator>eroffol</dc:creator>
    <dc:date>2018-09-27T18:08:17Z</dc:date>
    <item>
      <title>Splunk Bookmarks not working in Firefox and Chrome</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-Bookmarks-not-working-in-Firefox-and-Chrome/m-p/385258#M6428</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Overview&lt;/STRONG&gt;&lt;BR /&gt;
Our users use several dashboards we have in our app.  They would like to have the ability to select filters on the dashboard, bookmark them, and navigate back to them later without having to reenter any filter values.  Most of the filters on our dashboards are multiselect fields with a default value of: name="All" value=".*"&lt;/P&gt;

&lt;P&gt;Currently, we can set filters and bookmark a page.  Unfortunately, when navigating to that bookmark in a fresh browser session, we have 2 main problems:&lt;BR /&gt;
1. Our custom css and js does not get applied to the dashboard&lt;BR /&gt;
2. Out multiselects are not populated correctly with the default values&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Reproducing:&lt;/STRONG&gt;&lt;BR /&gt;
1. Navigate to a dashboard with multiselect fields.  Select a value where name="All" and value=".*"&lt;BR /&gt;
2. Bookmark that page&lt;BR /&gt;
3. Close firefox&lt;BR /&gt;
4. Open a new private browsing session&lt;BR /&gt;
5. Navigate to the saved bookmark&lt;BR /&gt;
At this point, the multiselect field will be populated with ".%2A" instead of "All".  Also, none of the custom js/css will be applied.  If I open up the debug console, it looks like the domain is wrong for the URL of the JS/CSS (with a 307 error).  It uses "splunk" as the domain instead of what it should use.&lt;BR /&gt;
&lt;STRONG&gt;Example:&lt;/STRONG&gt; &lt;BR /&gt;
Bookmark loads this: &lt;A href="https://splunk/en-US/static/@03bbabcabf43/app/testApp/dashboard.css"&gt;https://splunk/en-US/static/@03bbabcabf43/app/testApp/dashboard.css&lt;/A&gt;&lt;BR /&gt;
Instead of this: &lt;A href="https://local.test/en-US/static/@03bbabcabf43/app/testApp/dashboard.css"&gt;https://local.test/en-US/static/@03bbabcabf43/app/testApp/dashboard.css&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;If I refresh the page, all of the JS/CSS loads properly, but the multiselect fields are still incorrect.&lt;BR /&gt;
If I click the bookmark again, everything looks just fine.  JS/CSS loads correctly and the multiselects populate with "All"&lt;BR /&gt;
If I use bookmarks in IE, it works fine.  JS/CSS loads properly and multiselects populate with "All"&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Environment information:&lt;/STRONG&gt;&lt;BR /&gt;
Splunk version: 7.1.2&lt;BR /&gt;
Browser: Firefox (various versions), Chrome (various versions)&lt;BR /&gt;
Relevant architecture info: Splunk search head cluster (3 members) behind a load balancer&lt;/P&gt;

&lt;P&gt;Is there something I have to do to get bookmarks to work?  Our users are not motivated enough to click a bookmark twice to get it to load correctly&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 19:16:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-Bookmarks-not-working-in-Firefox-and-Chrome/m-p/385258#M6428</guid>
      <dc:creator>eroffol</dc:creator>
      <dc:date>2018-09-18T19:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Bookmarks not working in Firefox and Chrome</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-Bookmarks-not-working-in-Firefox-and-Chrome/m-p/385259#M6429</link>
      <description>&lt;P&gt;I figured out a work around for the .%2A problem.&lt;BR /&gt;
In my search, I just added an eval statement to convert %2A to .*  The below statement checks my multiselect for %2A, &lt;EM&gt;, or All and sets matcher to .&lt;/EM&gt; if they match.  If not, just use what is in the multiselect.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval matcher = if(match($multiselect1$, "\((\*|\.?%2A|All)\)"), ".*", $multiselect1$)
| where match(field, matcher)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I still have the 307 error problem with my js and css the first time I navigate to my bookmark in a fresh browsing session (like in private or incognito).  Any suggestions would help!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 18:08:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-Bookmarks-not-working-in-Firefox-and-Chrome/m-p/385259#M6429</guid>
      <dc:creator>eroffol</dc:creator>
      <dc:date>2018-09-27T18:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Bookmarks not working in Firefox and Chrome</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-Bookmarks-not-working-in-Firefox-and-Chrome/m-p/385260#M6430</link>
      <description>&lt;P&gt;Another update:&lt;/P&gt;

&lt;P&gt;This error only occurs if I save a bookmark with filters selected.&lt;BR /&gt;
For example, if I save a bookmark like this, it works fine (JS/CSS applied correctly):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&lt;A href="https://local.test/splunk/en-US/app/testApp/testDashboard" target="test_blank"&gt;https://local.test/splunk/en-US/app/testApp/testDashboard&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If I save a bookmark with filters selected, I get the 307 error where it can't find my JS/CSS because it is using the wrong domain&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&lt;A href="https://local.test/splunk/en-US/app/testApp/testDashboard?form.filter1=&amp;quot;All&amp;quot;&amp;amp;form.filter2=&amp;quot;.*&amp;quot;" target="test_blank"&gt;https://local.test/splunk/en-US/app/testApp/testDashboard?form.filter1="All"&amp;amp;form.filter2=".*"&lt;/A&gt;;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Oct 2018 14:53:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-Bookmarks-not-working-in-Firefox-and-Chrome/m-p/385260#M6430</guid>
      <dc:creator>eroffol</dc:creator>
      <dc:date>2018-10-02T14:53:20Z</dc:date>
    </item>
  </channel>
</rss>

