# Make redirects/aliases use templates

**URL:** <https://zola.discourse.group/t/make-redirects-aliases-use-templates/2186>\
**Category:** Feature requests\
**Created:** [June 30, 2024, 6:31am UTC](https://zola.discourse.group/t/make-redirects-aliases-use-templates/2186 "2024-06-30T06:31:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaxter184](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/jaxter184/32/1247_2.png) [@jaxter184](https://zola.discourse.group/u/jaxter184)\
**Post date:** [June 30, 2024, 6:31am UTC](https://zola.discourse.group/t/make-redirects-aliases-use-templates/2186/1 "2024-06-30T06:31:17Z")

</div>

I’d like to add a style to my redirects/aliases because I’m using a dark theme and my screen goes bright white for a split second whenever I open a redirect link. I was hoping it would work to add a file to `my-theme/templates/alias.html` or `my-theme/templates/internal/alias.html` sorta like how the 404.html replacement works, but no luck. It seems alias.html is different from the other built-in templates, is there a reason why?

Edit: quick code mockup that does what I’m looking for: [Make alias templatable · jaxter184/zola@217f56b · GitHub](https://github.com/jaxter184/zola/commit/217f56b881d049c925122c75d4436c79b68f9922)

---

<div class="post-metadata">

**Author:** ![welpo](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/welpo/32/1087_2.png) [@welpo](https://zola.discourse.group/u/welpo)\
**Post date:** [July 3, 2024, 7:44pm UTC](https://zola.discourse.group/t/make-redirects-aliases-use-templates/2186/2 "2024-07-03T19:44:15Z")

</div>

I successfully added styles/changed the content of the alias template. It’s in my theme’s `templates/internal/alias.html`.

One caveat is that you can’t access the `config` values, but other than that, it works.

Does nothing change at all when you change the contents of that template?

---

<div class="post-metadata">

**Author:** ![jaxter184](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/jaxter184/32/1247_2.png) [@jaxter184](https://zola.discourse.group/u/jaxter184)\
**Post date:** [July 4, 2024, 12:12am UTC](https://zola.discourse.group/t/make-redirects-aliases-use-templates/2186/3 "2024-07-04T00:12:13Z")

</div>

Oh wow, I’m not sure what I was doing wrong before, but I tried again and it worked fine. Maybe I had a typo or something. Sorry for the noise, and thanks for your reply. Is there a way to mark the thread as being resolved?
