Project

General

Profile

Actions

Feature #1685

closed

Make static links work

Added by Alexander Watzinger about 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
2022-04-04
Estimated time:

Description

At the moment URLs of e.g. detail views are shown like https://discover-connec.openatlas.eu/single/9411 but if they are addressed directly a 404 occurs.

Actions #1

Updated by Alexander Watzinger almost 2 years ago

I talked with Christoph about it and he told he managed this to work and it's documented in the bottom of the README (https://github.com/craws/OpenAtlasDiscovery).
I just tested it and it works with his version, see e.g. https://frontend-demo.openatlas.eu/single/5296. Not sure how he made it, there was nothing special in the Apache config files.
Because I won't have time next week, maybe you could look at this new information, maybe Christoph can help too (I added him as watcher). Otherwise we can try to meet up the week after the next one.

Actions #2

Updated by Christoph Hoffmann almost 2 years ago

Hi everyone, it should be just a matter of inserting a .htaccess file in the root directory of the dist version like so:

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.html$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.html [L]
</IfModule>
Actions #3

Updated by Alexander Watzinger almost 2 years ago

  • Status changed from Assigned to Closed
Thanks Andi for looking into it and Christoph for providing assistance. I took some time and looked into it too, multiple issues seemed to be involved:
  • The Apache rewrite module seemed to have not been activated at the ACDH-CH server (this did surprised me a bit) but is now activated
  • The .htaccess approach didn't work. Not sure why but I never use it so I may have overlooked something
  • The posted lines of Christoph do work if put into the Directory section of the Apache configuration file

It's working now, see e.g. https://discover-connec.openatlas.eu/single/9411
Because I wasn't sure where to put this information I expanded the README in the main branch of OpenAtlas-Discovery: https://github.com/craws/OpenAtlasDiscovery

Although closing this issue feel free to adapt the workflow (e.g. with an .htaccess file) or change how it is documented.

Actions

Also available in: Atom PDF