In Phoenixframework I want to know full URL path that is being requested so I tried to use <%= @conn.request_path %>
.
The problem is that I'm requesting :/spa.html#pageone
and I'm getting only /spa.html
.
What is the correct way of also getting the #fragment
identifier part of it?
相关问题
- Preload all Relationships
- How to select id with max date group by category i
- protocol Phoenix.HTML.Safe not implemented Elixir
- Phoenix remove [debug] logging
- Ecto or Elixir datatype that maps to MySql BIGINT
相关文章
- How to get data from Ecto in a custom mix task
- How can I make Elixir mix test output more verbose
- How to make forms and transactions play well in ph
- Count the Number of Entries in an Ecto Repository
- Elixir Phoenix helper for associated model list
- Ecto - validate presence of associated model
- How can a Phoenix application tailored only to use
- How to handle associations and nested forms in Pho
The fragment is not available on the server side.
From RFC2396
You can access it in JavaScript with
window.location.hash
.http://www.mikeduncan.com/?s=named+anchors (from Get anchor part of URL in controller in Ruby on Rails) Is a good resource on the topic.