We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d85626 commit 0f2c1b2Copy full SHA for 0f2c1b2
apps/components_guide_web/lib/components_guide_web/templates/web_standards/url_live.ex
@@ -116,9 +116,9 @@ defmodule ComponentsGuideWeb.WebStandards.Live.URL do
116
);
117
url.protocol; // '<%= State.to_url(@state).scheme %>:'
118
url.host; // '<%= State.to_url(@state).host %>'
119
- url.path; // '<%= State.to_url(@state).path %>'
+ url.pathname; // '<%= State.to_url(@state).path %>'
120
121
- url.search; // '<%= State.to_url(@state).query %>'
+ url.search; // '?<%= State.to_url(@state).query %>'
122
const query = new URLSearchParams(url.search);
123
<%= for {key, value} <- State.get_query_vars(@state) do
124
"query.get('#{key}'); // '#{value}'\n"
0 commit comments