Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remark #871

Closed
janay666 opened this issue Dec 20, 2017 · 1 comment
Closed

remark #871

janay666 opened this issue Dec 20, 2017 · 1 comment

Comments

@janay666
Copy link

janay666 commented Dec 20, 2017

in application/Config/Routes.php
$routes->add('blog-site', 'Home::blogAction',['as' => 'blog']);

if < a href="{base_url()}blog-site">foo< / a > then http://localhost:8888/ci4/public/blog-site <= public / blog-site
if < a href="{base_url()}{route_to('blog')}">foo< / a > then http://localhost:8888/ci4/public//blog-site <= public // blog-site

@lonnieezell
Copy link
Member

Are you using the latest code from the develop branch? I cannot recreate this. The following all work with a single slash created:

echo base_url().route_to('blog');
echo esc(base_url(route_to('blog')));
echo esc(base_url().route_to('blog'), 'attr');
echo esc(base_url(route_to('blog')), 'attr');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants