helium-css icon indicating copy to clipboard operation
helium-css copied to clipboard

extra ':' in URL after 'localhost'

Open folkfreund opened this issue 9 years ago • 3 comments

I have a problem using helium in localhost installation.

  • Startpage: http://localhost/vhosts/mypage/index.php/kalender.html
  • Pagelist: index.php/kalender.html index.php/terminvorschlag.html
  • Result: Error 404 because extra ':' in URL after 'localhost' http://localhost:/vhosts/folkfreun.de/index.php/assets/css/4cc5c0fd7986.css

Any hint what I'm doing wrong? Or is this an error?

folkfreund avatar Sep 17 '15 19:09 folkfreund

Can you try the page list as fully qualified urls and report back?

E.g: http://localhost/vhosts/mypage/index.php/kalender.html http://localhost/vhosts/mypage/index.php/terminvorschlag.html

geuis avatar Sep 18 '15 00:09 geuis

Same as before. This is a portion of the normal page source: <base href="http://localhost/vhosts/mypage/"> <meta name="robots" content="index,follow"> <meta name="description" content=""> <meta name="keywords" content=""> <meta name="generator" content="Contao Open Source CMS"> <link rel="stylesheet" href="assets/css/4cc5c0fd7986.css">

When running helium, the browser correctly displays the configured pages but then reports the error. The correct location of the CSS should be http://localhost/vhosts/mypage/assets/css/4cc5c0fd7986.css So: it is not only the additional ':'. I also tried to put "RewriteBase vhosts/mypage/" in my .htaccess, but this didn't help either.

Ah, sorry for the typo in my first post. I wanted to replace 'folkfreun.de' by 'mypage'.

folkfreund avatar Sep 18 '15 10:09 folkfreund

Hmm. I suspect its because you're using . Helium expects href's to be full or absolute.

geuis avatar Sep 18 '15 22:09 geuis