Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed urls for custom base and home node in alias sites.
- Loading branch information
Showing
4 changed files
with
60 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,10 +8,6 @@ default: | |
tem: "/visitor.site.home_node" | ||
res: "alias.host: a wiki with Zena" | ||
|
||
link_href_home: | ||
src: "<r:link href='home'/>" | ||
res: "<a href='/oo/blog29.html'>status title</a>" | ||
|
||
test_home: | ||
context: | ||
node: wiki | ||
|
@@ -39,4 +35,18 @@ from_home: | |
# For this test, we add some sub-nodes in wiki | ||
in_home: | ||
src: <r:void do='nodes in home' do='each' join=', ' do='title'/> | ||
res: bird, flower, one, three, two | ||
res: bird, flower, one, three, two | ||
|
||
link_to_home: | ||
src: <r:void do='home' do='link'/> | ||
res: <a href='/oo'>a wiki with Zena</a> | ||
|
||
link_with_custom_base: | ||
# custom base is set on 'home' before this test | ||
src: <r:void do='image in home' find='first' do='link'/> <r:void do='page where title = "three" in home' find='first' do='link'/> | ||
res: <a href='/oo/image30.html'>bird</a> <a href='/oo/one/page68.html'>three</a> | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
testbird
|
||
|
||
link_with_custom_base_out_of_home: | ||
# custom base is set on 'home' before this test | ||
src: <r:void do='page where id = 22 in site' find='first' do='link'/> | ||
res: <a href='/oo/projects-list/Clean-Water-project/page22.html'>status title</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 comment
on commit b65031d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a test that checks that the link_with_custom_base can be renderd without a 404 not found?
Could it be that the custom_base URL of the "three" page should be more like
<a href='/oo/one/three.html'>three</a>
or rather<a href='/oo/three.html'>three</a>
with for the domain with the home node set?