# \#url

**URL:** https://forum.elixirforum.com/tag/url/323.md

[Latest](https://forum.elixirforum.com/latest.md) · [Categories](https://forum.elixirforum.com/categories.md) · [Tags](https://forum.elixirforum.com/tags.md)

---

## [Help defining URL Rest structure for nested element](https://forum.elixirforum.com/t/help-defining-url-rest-structure-for-nested-element/62617)

<div class="topic-metadata">

**Author:** [@joseratts](https://forum.elixirforum.com/u/joseratts)\
**Replies:** 5\
**Last updated:** [March 31, 2024, 10:34pm UTC](https://forum.elixirforum.com/t/help-defining-url-rest-structure-for-nested-element/62617 "2024-03-31T22:34:11Z")

</div>

Hello everyone I’m creating an example phoenix app just for learning. My example app is a real estate web portal, so I’m gonna publish places (houses, apartments, etc). I have defined the following entities Place (house…

---

## [URI.parse and the 7x http:// URL](https://forum.elixirforum.com/t/uri-parse-and-the-7x-http-url/50297)

<div class="topic-metadata">

**Author:** [@halostatue](https://forum.elixirforum.com/u/halostatue)\
**Replies:** 2\
**Last updated:** [September 15, 2022, 8:26pm UTC](https://forum.elixirforum.com/t/uri-parse-and-the-7x-http-url/50297 "2022-09-15T20:26:21Z")

</div>

I’m not sure whether everyone has seen Daniel Stenberg’s post on the validity of http://http://http://@http://http://?http://#http://, but it’s an interesting read. The Elixir URI.parse implementation parses in the same…

---

## [Handling and retrieving query parameters in live view](https://forum.elixirforum.com/t/handling-and-retrieving-query-parameters-in-live-view/49006)

<div class="topic-metadata">

**Author:** [@hauks96](https://forum.elixirforum.com/u/hauks96)\
**Replies:** 3\
**Last updated:** [July 18, 2022, 1:52pm UTC](https://forum.elixirforum.com/t/handling-and-retrieving-query-parameters-in-live-view/49006 "2022-07-18T13:52:03Z")

</div>

How can I handle query parameters in a live view? I.e an url such as /books?category=drama&author=John Router.ex live "/books", BooksLive, :index

---

## [How to post data in a url](https://forum.elixirforum.com/t/how-to-post-data-in-a-url/39645)

<div class="topic-metadata">

**Author:** [@VincentBlackdot](https://forum.elixirforum.com/u/VincentBlackdot)\
**Replies:** 7\
**Last updated:** [May 13, 2021, 12:23am UTC](https://forum.elixirforum.com/t/how-to-post-data-in-a-url/39645 "2021-05-13T00:23:36Z")

</div>

how do i post data to a url with its parameters eg www.sendmessage.com/client/xml/send?client&pass&message&phone i want to pick the fields client, pass, message and phone from the db and pass them to a function like d…

---

## [Get network address everytime I run mix phx.server](https://forum.elixirforum.com/t/get-network-address-everytime-i-run-mix-phx-server/36123)

<div class="topic-metadata">

**Author:** [@tanweerdev](https://forum.elixirforum.com/u/tanweerdev)\
**Replies:** 8\
**Last updated:** [December 10, 2020, 1:06pm UTC](https://forum.elixirforum.com/t/get-network-address-everytime-i-run-mix-phx-server/36123 "2020-12-10T13:06:55Z")

</div>

Sometimes I need to share network address of my machine with my colleague which have access to same network(same wifi). and its really useful if he can connect to my machine and perform queries/requests from their machin…

---

## [Data\_url: Parse data: URLs and access the data contained therein](https://forum.elixirforum.com/t/data-url-parse-data-urls-and-access-the-data-contained-therein/35285)

<div class="topic-metadata">

**Author:** [@ericlathrop](https://forum.elixirforum.com/u/ericlathrop)\
**Replies:** 6\
**Last updated:** [November 2, 2020, 6:31am UTC](https://forum.elixirforum.com/t/data-url-parse-data-urls-and-access-the-data-contained-therein/35285 "2020-11-02T06:31:36Z")

</div>

I needed to parse some data: URLs to get the binary data, and the built-in URI module didn’t do it. So here’s a small library for parsing them. If someone wants to add %DataUrl{} → to\_string(), I’d gladly accept it. Fro…

---

## [Phoenix socket origin](https://forum.elixirforum.com/t/phoenix-socket-origin/33952)

<div class="topic-metadata">

**Author:** [@otuv](https://forum.elixirforum.com/u/otuv)\
**Replies:** 1\
**Last updated:** [August 25, 2020, 10:06pm UTC](https://forum.elixirforum.com/t/phoenix-socket-origin/33952 "2020-08-25T22:06:57Z")

</div>

Hi, I’m trying to deploy a phoenix application as described in deploy phoenix with releases but fail. I have set the host in my prod config config :miew, MiewWeb.Endpoint, url: \[host: "172.xxx.yy.146", port: 80\], B…

---

## [Why \`Phoenix.Endpoint.static\_url/1\` doesn't exist?](https://forum.elixirforum.com/t/why-phoenix-endpoint-static-url-1-doesnt-exist/25931)

<div class="topic-metadata">

**Author:** [@augnustin](https://forum.elixirforum.com/u/augnustin)\
**Replies:** 2\
**Last updated:** [October 16, 2019, 10:36am UTC](https://forum.elixirforum.com/t/why-phoenix-endpoint-static-url-1-doesnt-exist/25931 "2019-10-16T10:36:06Z")

</div>

I can write: Routes.root\_path(Vae.Endpoint, :index) # output: "/" Routes.root\_url(Vae.Endpoint, :index) # output: "https://example.com/" The latter is especially useful for emails. I can also write: Vae.Endpoint.stat…

---

## [Is there a Best Practice for forming JSON (etc) URLs?](https://forum.elixirforum.com/t/is-there-a-best-practice-for-forming-json-etc-urls/22747)

<div class="topic-metadata">

**Author:** [@Rich\_Morin](https://forum.elixirforum.com/u/Rich_Morin)\
**Replies:** 17\
**Last updated:** [May 29, 2019, 9:48pm UTC](https://forum.elixirforum.com/t/is-there-a-best-practice-for-forming-json-etc-urls/22747 "2019-05-29T21:48:15Z")

</div>

If I’m exporting (or accepting) data structures for a given HTML page, is there a Best Practice or convention for forming JSON (etc) URLs?. For example, something like ...?fmt=\<fmt\> or perhaps ...?fmt=\<fmt\>&part=\<part\>? …

---

## [Virtual path in URL when running phoenix locally](https://forum.elixirforum.com/t/virtual-path-in-url-when-running-phoenix-locally/22663)

<div class="topic-metadata">

**Author:** [@shuaybi](https://forum.elixirforum.com/u/shuaybi)\
**Replies:** 0\
**Last updated:** [May 24, 2019, 2:09pm UTC](https://forum.elixirforum.com/t/virtual-path-in-url-when-running-phoenix-locally/22663 "2019-05-24T14:09:12Z")

</div>

See whenever you run a phoenix app locally, the URL is always something like: http://localhost:4100 where 4100 is the port number I configured in my dev.exs How can I make it so that the URL has some dummy virtual pat…

---

## [How to get current request url full query params (as a keyword list if possible) inside a phoenix template?](https://forum.elixirforum.com/t/how-to-get-current-request-url-full-query-params-as-a-keyword-list-if-possible-inside-a-phoenix-template/22256)

<div class="topic-metadata">

**Author:** [@Kurisu](https://forum.elixirforum.com/u/Kurisu)\
**Replies:** 4\
**Last updated:** [May 7, 2019, 2:47pm UTC](https://forum.elixirforum.com/t/how-to-get-current-request-url-full-query-params-as-a-keyword-list-if-possible-inside-a-phoenix-template/22256 "2019-05-07T14:47:00Z")

</div>

For example for a current url like http://localhost:4000/cosmetic/products?\_utf8=✓&query=perfume&page=2, I would like to get: \[\_utf8: “✓”, query: “perfume”, page: “2”\] I tought I could use @conn.assigns.params but …

---

## [Lib to analyze url](https://forum.elixirforum.com/t/lib-to-analyze-url/18569)

<div class="topic-metadata">

**Author:** [@obsidienne](https://forum.elixirforum.com/u/obsidienne)\
**Replies:** 4\
**Last updated:** [December 8, 2018, 1:38pm UTC](https://forum.elixirforum.com/t/lib-to-analyze-url/18569 "2018-12-08T13:38:10Z")

</div>

Hi, My app allows users to store url. As an example, for a song, a use can store a link to YouTube, Deezer, Spotify, iTunes, etc… Do you know a lib capable of extracting the provider (Deezer, Spotify,…), the provider …

---

## [URL parser for non-HTTP URLs](https://forum.elixirforum.com/t/url-parser-for-non-http-urls/18181)

<div class="topic-metadata">

**Author:** [@kip](https://forum.elixirforum.com/u/kip)\
**Replies:** 0\
**Last updated:** [November 24, 2018, 11:21pm UTC](https://forum.elixirforum.com/t/url-parser-for-non-http-urls/18181 "2018-11-24T23:21:50Z")

</div>

ex\_url parses URLs like URI but it adds parsing of non-HTTP URL’s and parsing for URL parameters. It currently knows how to parse tel:, uuid:, urn:, mailto:, data: and geo: URIs. Examples # Parse a geo: URI iex\> URL.pa…

---

## [How to get the "path" part of the current URI?](https://forum.elixirforum.com/t/how-to-get-the-path-part-of-the-current-uri/17841)

<div class="topic-metadata">

**Author:** [@kattair0ta8](https://forum.elixirforum.com/u/kattair0ta8)\
**Replies:** 2\
**Last updated:** [November 10, 2018, 10:13pm UTC](https://forum.elixirforum.com/t/how-to-get-the-path-part-of-the-current-uri/17841 "2018-11-10T22:13:22Z")

</div>

The current url can be retrieved this way: Phoenix.Controller.current\_url(conn) How can I get the “path” part of it? In: my\_domain.com/path1/path2/path3?q=sfdsafdsafds the /path1/path2/path3 is what I want to ge…

---

## [Location of Routes module in hex.pm](https://forum.elixirforum.com/t/location-of-routes-module-in-hex-pm/14311)

<div class="topic-metadata">

**Author:** [@sawthinkar](https://forum.elixirforum.com/u/sawthinkar)\
**Replies:** 3\
**Last updated:** [May 24, 2018, 8:08am UTC](https://forum.elixirforum.com/t/location-of-routes-module-in-hex-pm/14311 "2018-05-24T08:08:33Z")

</div>

I would like to know more about that Routes module. Can anyone explain me in brief? Any link or resource suggestions? Thanks!

---

## [In Phoenix in general and using VueJS on front-end in particular, how to map friendly URL's to content?](https://forum.elixirforum.com/t/in-phoenix-in-general-and-using-vuejs-on-front-end-in-particular-how-to-map-friendly-urls-to-content/11303)

<div class="topic-metadata">

**Author:** [@acrolink](https://forum.elixirforum.com/u/acrolink)\
**Replies:** 5\
**Last updated:** [January 4, 2018, 9:11pm UTC](https://forum.elixirforum.com/t/in-phoenix-in-general-and-using-vuejs-on-front-end-in-particular-how-to-map-friendly-urls-to-content/11303 "2018-01-04T21:11:00Z")

</div>

I mean how to map for instance /news/12 to /news/elixir-2-announced? Do I need to create a database table to map friendly URL’s to actual content? How is this achieved in pure Phoenix and how the same can be done using V…
