2.8.1 URL field error: link directs to /mod/data/url instead of to linked site

2.8.1 URL field error: link directs to /mod/data/url instead of to linked site

Clay Burell -
回帖数:3

Can't figure this one. Compared URL field settings in 2.8.1 to those of another Db I made in 2.7.2 before upgrading. Same exact settings.

Yet in 2.8.1 the link

leads to this:

Thanks in advance for any help on this one!

回复Clay Burell

Re: 2.8.1 URL field error: link directs to /mod/data/url instead of to linked site

Itamar Tzadok -
The url must start with http:// (or ftp://, mailto:// etc.) or else it is interpreted as relative and the link is prefixed with the current location. When you save an entry with a url field, the http:// is automatically added if the protocol is missing from the url. Apparently, when you import entries, the module doesn't add the http:// where omitted, and all the imported urls which do not contain the protocol will be relative and broken if intended as absolute. That's a bug in the Database import and is worth reporting in the tracker if not already. Workaround: before import fix the urls.

hth 微笑
回复Itamar Tzadok

Re: 2.8.1 URL field error: link directs to /mod/data/url instead of to linked site

Clay Burell -

Helps very much, Itamar. But wouldn't you know this particular csv file has 30,000 urls in that column! None with http:// in front. 伤心

But thanks much for that tip. I'll report in tracker tomorrow.