kitodo / kitodo-presentation

Kitodo.Presentation is a feature-rich framework for building a METS- or IIIF-based digital library. It is part of the Kitodo Digital Library Suite.
https://kitodo.org
GNU General Public License v3.0
37 stars 45 forks source link

No fulltext is displayed within pageview on Webserver subdirectory #146

Closed frank-ulrich-weber closed 7 years ago

frank-ulrich-weber commented 7 years ago

If Kitodo.Presentation is installed/configured to run on a subdirectory of the Webserver the following line https://github.com/kitodo/kitodo-presentation/blob/master/dlf/plugins/pageview/class.tx_dlf_pageview.php#L185 creates an invalid URL. I think it is possible to avoid this behaviour just by deleting the leading '/'. Am I right or will then arise other problems?

sebastian-meyer commented 7 years ago

Unfortunately your proposed fix would cause other issues, for example when using "realurl" extension.

We should use the typolink API to generate the URL and circumvent those issues.

albig commented 7 years ago

This has been fixed with 51af8d9800df9cd37eb872f57a8a17a40f4a8192