Skip to content

Commit 0f2c1b2

Browse files
committed
Fix javascript example
1 parent 4d85626 commit 0f2c1b2

File tree

1 file changed

+2
-2
lines changed
  • apps/components_guide_web/lib/components_guide_web/templates/web_standards

1 file changed

+2
-2
lines changed

apps/components_guide_web/lib/components_guide_web/templates/web_standards/url_live.ex

+2-2
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ defmodule ComponentsGuideWeb.WebStandards.Live.URL do
116116
);
117117
url.protocol; // '<%= State.to_url(@state).scheme %>:'
118118
url.host; // '<%= State.to_url(@state).host %>'
119-
url.path; // '<%= State.to_url(@state).path %>'
119+
url.pathname; // '<%= State.to_url(@state).path %>'
120120
121-
url.search; // '<%= State.to_url(@state).query %>'
121+
url.search; // '?<%= State.to_url(@state).query %>'
122122
const query = new URLSearchParams(url.search);
123123
<%= for {key, value} <- State.get_query_vars(@state) do
124124
"query.get('#{key}'); // '#{value}'\n"

0 commit comments

Comments
 (0)