Skip to content

Conversation

@ShGKme
Copy link
Contributor

@ShGKme ShGKme commented Apr 11, 2024

☑️ Resolves

I just realized that relative links should be considered relative to the Nextcloud instance, not origins.

For example, for the page http://cloud.ltd/nextcloud/index.php/apps/files/favorites, the relative link should be /apps/files/favorites, not /nextcloud/index.php/apps/files/favorites.

  • Adjusted relative links generation tests
  • Added one specific test for this case
  • Changed getRoute

Tests for all the cases looks a bit messy, but I don't know how to make it better.

🏁 Checklist

  • ⛑️ Tests are included or are not applicable
  • 📘 Component documentation has been extended, updated or is not applicable
  • 3️⃣ Backport to next requested with a Vue 3 upgrade

@ShGKme ShGKme added bug Something isn't working 3. to review Waiting for reviews feature: richtext Related to the richtext component labels Apr 11, 2024
@ShGKme ShGKme self-assigned this Apr 11, 2024
@ShGKme ShGKme force-pushed the fix/autolink--correctly-handle-relative-links branch from a32060f to 7b81387 Compare April 18, 2024 17:50
@ShGKme ShGKme enabled auto-merge April 18, 2024 17:50
@ShGKme ShGKme merged commit cbef311 into master Apr 18, 2024
@ShGKme ShGKme deleted the fix/autolink--correctly-handle-relative-links branch April 18, 2024 17:52
@ShGKme
Copy link
Contributor Author

ShGKme commented Apr 18, 2024

/backport to next

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug Something isn't working feature: richtext Related to the richtext component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants