# URL redirection

**URL:** <https://talk.observablehq.com/t/url-redirection/637>\
**Category:** Feedback\
**Created:** [April 13, 2018, 10:10pm UTC](https://talk.observablehq.com/t/url-redirection/637 "2018-04-13T22:10:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![severo](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/severo/32/786_2.png) [@severo](https://talk.observablehq.com/u/severo)\
**Post date:** [April 13, 2018, 10:10pm UTC](https://talk.observablehq.com/t/url-redirection/637/1 "2018-04-13T22:10:09Z")

</div>

I created links between various notebooks in editing mode. For example: [ir a la etapa 2/5](https://beta.observablehq.com/d/b87c48d83a443183). These notebooks use “temporal” URLs.

Once I published the notebooks, other people could access to them, but the links are broken, since the “temporal” URL do not seem to be accessible, nor redirected.

Note that, when I’m logged, if I click on the “temporal” URL, I’m redirected to the public URL: [OWASP 2018 (2/5) - Web Crypto API - Calcular hashes / Sylvain Lesage | Observable](https://beta.observablehq.com/d/b87c48d83a443183) → [OWASP 2018 (2/5) - Web Crypto API - Calcular hashes / Sylvain Lesage | Observable](https://beta.observablehq.com/@severo/owasp-2018-2-5-web-crypto-api-calcular-hashes).

See the last cell in [OWASP 2018 (1/5) - Web Crypto API / Sylvain Lesage | Observable](https://beta.observablehq.com/@severo/owasp-2018-1-4-web-crypto-api) for an example.

---

<div class="post-metadata">

**Author:** ![tom](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/tom/32/2262_2.png) [@tom](https://talk.observablehq.com/u/tom)\
**Post date:** [April 15, 2018, 8:34pm UTC](https://talk.observablehq.com/t/url-redirection/637/2 "2018-04-15T20:34:42Z")

</div>

Sure, here’s what’s going on:

- ‘temporal’ URLs are what we’d call ‘draft’ URLs, and they’re always private to you. They’re designed to be un-guessable, consisting of random bytes.
- when you publish a notebook, it grabs a public URL. This URL isn’t ‘allotted’ until you publish, because it’s designed to be immutable: people might use `import` to build off of your work, so we don’t want it to be super dynamic.

We’re still working on the usability in this area - it’s pretty flawed right now - because linking to a `/d/fdafd` URL is akin to linking to the URL in a wordpress draft editor, but given that our editing and published UIs are so incredibly similar, that isn’t the mental model it engenders.

I can see that:

- We don’t make a clear enough UI distinction between draft & publish states
- And for inter-linking notebooks, it’d be useful to know what the _future_ permalink of a notebook would be

---

<div class="post-metadata">

**Author:** ![magjac](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/magjac/32/525_2.png) [@magjac](https://talk.observablehq.com/u/magjac)\
**Post date:** [May 8, 2018, 11:55am UTC](https://talk.observablehq.com/t/url-redirection/637/3 "2018-05-08T11:55:27Z")

</div>

@tom Is there some way to share a notebook with other people without making it fully public? I tried giving away the un-guessable URL, but as you wrote above, it seems to be private to me only.

---

<div class="post-metadata">

**Author:** ![severo](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/severo/32/786_2.png) [@severo](https://talk.observablehq.com/u/severo)\
**Post date:** [May 8, 2018, 12:36pm UTC](https://talk.observablehq.com/t/url-redirection/637/4 "2018-05-08T12:36:01Z")

</div>

see [https://beta.observablehq.com/@mbostock/changelog-2018-05-07](https://beta.observablehq.com/@mbostock/changelog-2018-05-07)

---

<div class="post-metadata">

**Author:** ![Fil](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/fil/32/207_2.png) [@Fil](https://talk.observablehq.com/u/Fil)\
**Post date:** [May 8, 2018, 3:19pm UTC](https://talk.observablehq.com/t/url-redirection/637/5 "2018-05-08T15:19:10Z")

</div>

it might be better if the URL indicated which version it shares (maybe by having /d/fdafd/1234 instead of /d/fdafd )

---

<div class="post-metadata">

**Author:** ![tom](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/tom/32/2262_2.png) [@tom](https://talk.observablehq.com/u/tom)\
**Post date:** [May 8, 2018, 5:32pm UTC](https://talk.observablehq.com/t/url-redirection/637/6 "2018-05-08T17:32:46Z")

</div>

Sure - this topic needs an update:

Since the [last changelog](https://beta.observablehq.com/@mbostock/changelog-2018-05-07), we support share links! Which means that if you go into the header and click `Copy link`, then the `/d/fjdskal` URL becomes accessible to anyone who has the link, and the link is copied to your clipboard.

How this interacts with versioning: when you click Copy link, people see the version of the notebook at that time. You can keep editing the notebook, and your changes won’t be visible to anyone else until you click Copy link again (or if you publish the notebook). The intent is that we want to make it easy to say “oh, just refresh this page” when you’re group-reviewing some content. This is, coincidentally, how we’ve been reviewing changelogs at Observable 🙂

That said, we still want the default to be strong privacy, not just unguessable URLs - so `/d/fdsajkl` URLs _aren’t_ accessible to anyone else until you click Copy link.
