Hi all,<br>
<br>
I found that Seaside 2.5 does not quite permit the usage of a default
root URL. If you have Comanche doing nothing but serving up Seaside
apps I would rather drop the "/seaside/..." part of the URL. To
do this you need to:<br>
<br>
1. Run the following in a workspace: <span style="font-family: courier new,monospace;">WADispatcher default basePath: '/'</span><br>2. Modify WADispatcher#handlerForRequest:relativeTo: in the following location (near bottom add the following line in red).
<br>
<span style="font-family: courier new,monospace;"><br>
(relativePath notEmpty</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> and: [relativePath first = $/])</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> ifTrue: [name _ (relativePath findTokens: '/')</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">
at: 1</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">
ifAbsent: []]</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace; color: rgb(255, 0, 0);"> ifFalse: [name _ relativePath]. "add this line"<br>
<span style="color: rgb(0, 0, 0);"> entryPoints</span><br style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 0);"> at: name</span><br style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 0);"> ifPresent: [:n | ^ n]].</span><br style="color: rgb(0, 0, 0);">
<span style="color: rgb(51, 0, 51);"><span style="color: rgb(0, 0, 0);"> ^ WANotFoundHandler new</span><br style="color: rgb(0, 0, 0);">
<br style="color: rgb(0, 0, 0);">
</span></span><span style="color: rgb(255, 0, 0);"><span style="color: rgb(51, 0, 51);"><span style="color: rgb(0, 0, 0);">In
doing this you can run seaside on the default URL. For example:
<a href="http://localhost/config">http://localhost/config</a> instead of
<a href="http://localhost/seaside/config">http://localhost/seaside/config</a>. It is small, but my contribution
for the day.</span><br style="color: rgb(0, 0, 0);">
<br style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 0);">Regards,</span><br style="color: rgb(0, 0, 0);">
<br style="color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 0);">John</span><br style="color: rgb(0, 0, 0);">
</span></span><span style="font-family: courier new,monospace; color: rgb(255, 0, 0);"><span style="color: rgb(51, 0, 51);"><br style="font-family: courier new,monospace;">
</span></span>-- <br>It's easy to have a complicated idea. It's very very hard to have a simple idea. -- Carver Mead