need some shorthand for relative urls using views, sites and language paths

Reported by rejon on 2012-01-06
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
aikiframework
High
rg1024

Bug Description

The old aiki simply had a global variable [root] for defining an absolute url for paths in aiki. This is problematic because if used, it makes sites less portable.

Thus, rg1024 completed the concept that aiki installations can have different sites, views, and languages. And, he came up with a shorthand [route] which make absolute urls with the first adding on the current site, view or language.

However, this [route] is an absolute path with the domain name included.

We need some shorthand that makes an on-domain absolute path but autofills in the site, view and language path at the beginning of the url.

So, instead of something like http://openclipart.org/en/my/path

Can use something like [route-local] and receive /en/my/path

Does this make sense?

rg1024 (rg1024) wrote :

In sites installed in a dir (or path) relative paths don't work:
for example: www.domain.org/aiki -> home base for aiki installation.
a relative "/foo" url is translated to www.mysite.org/foo NOT www.mysite.org/aiki/foo.

PD:off course, there are simple solution: a subdomain.

Sure, that is why good to have some global for the path to root,
taking into account when aiki is installed anywhere, even on nested
directory installation.

On Mon, Jan 9, 2012 at 1:47 AM, rg1024 <email address hidden> wrote:
> In sites installed in a dir (or path) relative paths don't work:
> for example: www.domain.org/aiki  -> home base for aiki installation.
> a relative "/foo"  url is translated to  www.mysite.org/foo NOT www.mysite.org/aiki/foo.
>
> PD:off course, there are simple solution: a subdomain.
>
> --
> You received this bug notification because you are a member of Aiki
> Framework Admins, which is subscribed to aikiframework.
> https://bugs.launchpad.net/bugs/912632
>
> Title:
>  need some shorthand for relative urls using views, sites and language
>  paths
>
> Status in Aiki Framework:
>  New
>
> Bug description:
>  The old aiki simply had a global variable [root] for defining an
>  absolute url for paths in aiki. This is problematic because if used,
>  it makes sites less portable.
>
>  Thus, rg1024 completed the concept that aiki installations can have
>  different sites, views, and languages. And, he came up with a
>  shorthand [route]  which make absolute urls with the first adding on
>  the current site, view or language.
>
>  However, this [route] is an absolute path with the domain name
>  included.
>
>  We need some shorthand that makes an on-domain absolute path but
>  autofills in the site, view and language path at the beginning of the
>  url.
>
>  So, instead of something like http://openclipart.org/en/my/path
>
>  Can use something like [route-local] and receive /en/my/path
>
>  Does this make sense?
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/aikiframework/+bug/912632/+subscriptions
>
> _______________________________________________
> Mailing list: https://launchpad.net/~aikiframework.admins
> Post to     : <email address hidden>
> Unsubscribe : https://launchpad.net/~aikiframework.admins
> More help   : https://help.launchpad.net/ListHelp

--
Jon Phillips 王✳爻气 http://fabricatorz.com ✳ skype: kidproto ✳ irc: rejon
+1.415.830.3884 (global) ✳ +86-187-1003-9974 (beijing)

rg1024 (rg1024) wrote :

fix released in revision 1018. Local path is [route-local]

Changed in aikiframework:
status: New → Fix Released
rejon (rejon) on 2012-02-06
Changed in aikiframework:
milestone: 0.9.1 → 0.9.0
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers