Daniel-KM / Omeka-S-module-CleanUrl

Displays clean and readable URLs like https://example.org/my_collection/dcterms:identifier in Omeka S.
Other
4 stars 4 forks source link

Strange behavior with multi-site Omeka S instance #14

Open mcoonen opened 1 year ago

mcoonen commented 1 year ago

Hi Daniel,

Imagine an Omeka S instance with multiple sites.

  1. Name: Foo, site_id=1
  2. Name: Bar, site_id=2

In the Global Settings, there is an option for Default Site. Here, I can select 3 possible values:

When the Clean Url module is activated, there is some strange behavior with this site setting. When navigating to the Omeka base URL in my browser (e.g. http://omeka.local/ ) I always end up at the site with site_id=1, regardless of what is chosen in the global setting. It does not make any difference whether I choose No default, Foo or Bar.

Furthermore, we would like to have this frontpage with the index of sites - example from Omeka docs - working when activating the Clean Url module. This is currently not the case, as one is immediately forwarded to the site with site_id=1.

Would you be able to fix this? Best regards, Maarten Coonen

Versions used

Omeka S 3.2.3 Clean Url 3.17.4.4

mcoonen commented 1 year ago

Hi,

I think this issue will be solved with my PR above.

Cheers, Maarten