I have build the blog based on the tutorial and downloaded the the
blog from google.
Both have the problem, that links on the homepage http://127.0.0.1:8000/blog/
have bad URLs:
http://127.0.0.1:8000/entry/view/my-cat-is-ill
SHOULD BE: http://127.0.0.1:8000/blog/entry/view/my-cat-is-ill
I use ErlyWeb 0.7 and YAWS 1.74.
yaws.conf: --------------------------------------
..
<server localhost>
port = 8000
listen = 127.0.0.1
docroot = "C:/Dokumente und Einstellungen/HeiAn/workspace/blog/www"
appmods = <"/blog", erlyweb>
<opaque>
appname = blog
</opaque>
</server>
-module(blog_app_controller).
-export([hook/1]).
------------------------------------------------------
blog_app_controller.erl --------------------
hook(A) ->
A1=case yaws_arg:appmoddata(A) of
Root when (Root =:= "") orelse (Root =:= "/") ->
yaws_arg:appmoddata(A, "/entry");
_ ->
A
end,
Ewc = erlyweb:get_initial_ewc({ewc, A1}),
case Ewc of
{data,_}=Data ->
Data;
_ ->
{phased, Ewc,
fun(_Ewc, Data,_PhasedVars) ->
{ewc, html_container, [A1, {data, Data}]}
end}
end.
----------------------------------------------------------
How can I sove the problem?
thanks
Andreas
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"erlyweb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---