# How to provide a working link to README.md

**URL:** <https://forum.gitea.com/t/how-to-provide-a-working-link-to-readme-md/4969>\
**Category:** Gitea Usages\
**Created:** [April 1, 2022, 12:05pm UTC](https://forum.gitea.com/t/how-to-provide-a-working-link-to-readme-md/4969 "2022-04-01T12:05:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![uli-heller](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/uli-heller/32/1119_2.png) [@uli-heller](https://forum.gitea.com/u/uli-heller)\
**Post date:** [April 1, 2022, 12:05pm UTC](https://forum.gitea.com/t/how-to-provide-a-working-link-to-readme-md/4969/1 "2022-04-01T12:05:48Z")

</div>

I’d like to have a way to provide a working link a page (say my README.md file)

- When I’m logged in, this will work: [https://gitea.mydomain.org/mygroup/project/src/branch/main/README.md](https://gitea.mydomain.org/mygroup/project/src/branch/main/README.md)
- When I’m not logged in, I get an error page instead showing a big 404

On the other hand:

- When I’m logged in, this will not work: [https://gitea.mydomain.org/user/login?redirect\_to=mygroup/project/src/branch/main/README.md](https://gitea.mydomain.org/user/login?redirect_to=mygroup/project/src/branch/main/README.md). Instead of the README.md, I’ll get the overview page
- When I’m not logged in, the link will work as expected. I’ll have to login and afterwards, the README.md will be shown

So depending on my login status,  
either

- [https://gitea.mydomain.org/user/login?redirect\_to=/mygroup/project/src/branch/main/README.md](https://gitea.mydomain.org/user/login?redirect_to=/mygroup/project/src/branch/main/README.md) (=not logged in)

or

- [https://gitea.mydomain.org/mygroup/project/src/branch/main/README.md](https://gitea.mydomain.org/mygroup/project/src/branch/main/README.md) (=already logged in)

brings me to README.md. Is there a way to link to README.md, no matter if I’m logged in or not?

Thx for your help!
