<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How do I pass a parameter to a locally store webpage from the context (right click) menu?]]></title><description><![CDATA[<p dir="auto">I’m trying to get a locally stored html file to run from the context menu.</p>
<hr />
<p dir="auto"><em>moderator deleted confusing version, because it makes this topic harder to read; continue to the reply below for correct formatting of the original question</em></p>
]]></description><link>https://community.notepad-plus-plus.org/topic/27093/how-do-i-pass-a-parameter-to-a-locally-store-webpage-from-the-context-right-click-menu</link><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Nov 2026 15:38:58 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/27093.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 21 Aug 2025 19:00:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How do I pass a parameter to a locally store webpage from the context (right click) menu? on Tue, 02 Sep 2025 15:07:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> said</p>
<blockquote>
<p dir="auto">mybrowser.exe file:///E:/dwgs/Json/OSM_tag_history/index.html?$(CURRENT_WORD)</p>
</blockquote>
<p dir="auto">This was the solution. <em>upvote</em>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/103123</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/103123</guid><dc:creator><![CDATA[David Fox]]></dc:creator><pubDate>Tue, 02 Sep 2025 15:07:46 GMT</pubDate></item><item><title><![CDATA[Reply to How do I pass a parameter to a locally store webpage from the context (right click) menu? on Fri, 22 Aug 2025 20:32:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/david-fox" aria-label="Profile: David-Fox">@<bdi>David-Fox</bdi></a> said in <a href="/post/103000">How do I pass a parameter to a locally store webpage from the context (right click) menu?</a>:</p>
<blockquote>
<p dir="auto">I’m trying to get a locally stored html file to run from the context menu.</p>
</blockquote>
<p dir="auto">Commands that are in the run menu also need to be runnable from the cmd.exe window (except with the full value pasted in – and, in the case of URLs, also must prefix the command with <code>START</code>).</p>
<p dir="auto">If you try to execute your command with the <code>START</code> prefix, in cmd.exe, you will see it does the same thing:</p>
<pre><code>START file:///E:/dwgs/Json/OSM_Tag_History/index.html?node/6135938647
</code></pre>
<p dir="auto">that is, it drops the query parameters.  It’s a “feature” of Windows (and the shell execute or similar syntax), and not something that’s Notepad++'s fault.</p>
<blockquote>
<p dir="auto">Pasting this into the browser’s URL bar the data is received &amp; loaded</p>
</blockquote>
<p dir="auto">You might then try sending the <code>file:///E:/dwgs/Json/OSM_tag_history/index.html?$(CURRENT_WORD)</code> as a command-line parameter to your browser’s executable (using correct syntax), insead of relying on Windows cmd interpreter.  Maybe something like</p>
<pre><code>mybrowser.exe file:///E:/dwgs/Json/OSM_tag_history/index.html?$(CURRENT_WORD)
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/103004</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/103004</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 22 Aug 2025 20:32:21 GMT</pubDate></item><item><title><![CDATA[Reply to How do I pass a parameter to a locally store webpage from the context (right click) menu? on Fri, 22 Aug 2025 16:20:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/david-fox" aria-label="Profile: David-Fox">@<bdi>David-Fox</bdi></a> Apologies Something went wrong with the formatting, &amp; I’m unable to edit.</p>
<p dir="auto">I’m trying to get a locally stored html file to run from the context menu.</p>
<pre><code>&lt;Command name="OSM History" Ctrl="no" Alt="yes" Shift="no" Key="114"&gt;file:///E:/dwgs/Json/OSM_tag_history/index.html?$(CURRENT_WORD)&lt;/Command&gt;
</code></pre>
<p dir="auto">Current word = <code>node/6135938647</code></p>
<p dir="auto">It will load index.html but not display the data expected for that parameter.</p>
<p dir="auto">I added a couple of checks:</p>
<pre><code>console.log("Search params:", window.location.search);
console.log("Full href:", window.location.href);
</code></pre>
<p dir="auto">They return:</p>
<pre><code>Search params: &lt;empty string&gt; index.html:38:9
Full href: file:///E:/dwgs/Json/OSM_Tag_History/index.html index.html:39:9
</code></pre>
<p dir="auto">Pasting this into the browser’s URL bar the data is received &amp; loaded as expected: file:///E:/dwgs/Json/OSM_Tag_History/index.html?node/6135938647</p>
<p dir="auto">So the fact it’s a local <code>file:///</code> appears to be why it’s failing?<br />
Any ideas for a fix?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/103000</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/103000</guid><dc:creator><![CDATA[David Fox]]></dc:creator><pubDate>Fri, 22 Aug 2025 16:20:22 GMT</pubDate></item></channel></rss>