Abbas
Abbas

Reputation: 97

Kohana routing external url

I want to have url like this in my application http://website.com/click/http://google.com

with

Route::set('click', 'click(/<action>(/<link>))', array('link' =>'[\w\d-_/:]+'))
        ->defaults(array(
        'controller' => 'admanager',
        'action' => 'index',
    ));

but it does't work with http:// but works when omitting http:// from the url

Please advice, Thanks Abbas

Upvotes: 0

Views: 189

Answers (1)

zombor
zombor

Reputation: 3257

You need to base64 encode that. Putting a raw url inside a url (see the problem? :) will never work very well.

Upvotes: 1

Related Questions