View Full Version : Relative links to follow in meta-refresh and Javascript

09-22-2003, 11:01 AM

I found out, that Phpdig 1.6.2 does not follow meta-refresh urls, if the are relative. It does follow, if the urls are absolute. The same with Javascript links.

I guess there are good reasons for this, but since a lot of sites and pages are using refresh-redirects or navigations with relative Javascript links, Phpdig should be able to deal with it.

Actually, it should just take the current directory (without the document itself) and should then add the document name. I know, that this can also cause some trouble with Javascript-defined directories. So maybe we can make a feature, which can be enabled in the config.


09-23-2003, 06:12 AM
Hmmm, the problem seams to be more complex then I thought. Phpdig seams to successfully parse meta-refresh-redirects with documents only, like:

...0, url=index.php ...

But it does not parse the same situation with directories involved, like:

...0, url=subdirectory1/subdirectory2/index.php ...

Well I would call this a bug.

Someone with a patch?

10-05-2003, 10:05 AM
Hi. Thanks for the info. Can you please post the requests that show in your raw log files, or is it that PhpDig completely ignores the cases where the relative URL is like subdirectory1/subdirectory2/index.php?

10-05-2003, 10:18 AM
It does ignore the cases.

10-05-2003, 10:20 AM
Okay, thanks, will look into it. :)