Kibana is not showing whole URL

In discover I see the page url as


But when i create a data table visualization i only get js

Please help I need to show the whole URL.

Is the URL field possibly mapped as an analyzed string?

No its just a string

Please show the mappings for the index in question (or at least that field). Use Elasticsearch's get mapping API.