简体   繁体   中英

href HTML call to page “UP” Directory

This question is simple, but confusing to explain. Feel free to edit the question.

I'm making a django site and want to link to my admin site.

current url structure is /livestream/... everything.

I understand these href, all I need is how the path goes down the directory to link to a page, but I want to link to a page that is at the same 'level' as livestream

I want to link to /admin/ page.

How do I do this?

Current URL for admin: http://{server numbers}/admin/

Current URL for index [where the link is coming from]: http://{same server numbers}/livestream/

用这个:

<a href="../admin/">The Link</a>

../admin

The .. sends you up a level.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM