[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] branched links not getting right script alias 4.03 FIX?
****** message to minivend-users from cfm@maine.com ******
On Thu, Apr 20, 2000 at 07:56:54PM -0400, cfm@maine.com wrote:
> ****** message to minivend-users from cfm@maine.com ******
>
This modification in lib/Vend/Util.pm works for me. I'm not
sure of what grand schemes I'm running afoul...
It doesn't seem very efficient to do this for each link if
it could be done once per page.
sub vendUrl {
my($path, $arguments, $r) = @_;
# CFM
#
# $r = $Vend::Cfg->{VendURL}
# unless defined $r;
$r=$CGI::script_name unless defined $r;
$r=$Vend::Cfg->{VendURL} unless defined $r;
# /CFM
cfm
>
> We're having a hard time with script alias in mv4.03. Our
> branched links are not getting the right script alias.
>
> >From minivend.cfg:
> Catalog foo /var/mv/foo /Catalog/foo.cgi /Accounts/foo.cgi
>
> This from docs:
>
> > You can specify any number of alias script names as additional parameters.
> > This allows the calling path to be different while still calling the same
> > catalog -- it is most probably useful when calling an executable that
> > requires a username/password via Basic authorization. All branched links
> > will be called using the aliased URL.
>
> We use different script paths for just that purpose. However,
> a page called as /Accounts/foo.cgi/my_page is generating page links
> for path /Catalog/foo.cgi, not /Accounts/foo.cgi and the authentication
> breaks.
>
> my_page.html
>
> [page another]another page[/page]
>
> builds
>
> /Catalog/foo.cgi/another instead of /Accounts/foo.cgi/another.
>
> Has anyone else had this issue? Or not had this issue with
> a similar setup?
>
> cfm
>
>
>
>
> --
>
> Christopher F. Miller, Publisher cfm@maine.com
> MaineStreet Communications, Inc 208 Portland Road, Gray, ME 04039
> 1.207.657.5078 http://www.maine.com/
> Database publishing, e-commerce, office/internet integration, Debian linux.
> -
> To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
> email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
> Archive of past messages: http://www.minivend.com/minivend/minivend-list
--
Christopher F. Miller, Publisher cfm@maine.com
MaineStreet Communications, Inc 208 Portland Road, Gray, ME 04039
1.207.657.5078 http://www.maine.com/
Database publishing, e-commerce, office/internet integration, Debian linux.
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list