2015-01-09 89 views
0

我有整個網站鏈接地址不能跨

使用layout.jade內A股佈局的工作,我一個有一個鏈接:

a(href='../user/profile') Profile 

但是當http://hello.com/member/list/profile頁面將無法使用上述鏈接鏈接回頁面profile (http://hello.com/user/profile)

+0

它實際上鍊接到哪裏呢?也不應該是'../../ user/profile'? – laggingreflex

回答

0

如果使用「/ fullpath/user/profile」,它將引用根目錄。如果您使用此版本的鏈接,則無論您在網站上的哪個位置,它都會鏈接到相同的兩個鏈接。 「/ user/profile」或「/ member/list/profile」。