Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC] Store the full URI in the search results #491

Merged
merged 1 commit into from May 17, 2016

Conversation

leofeyer
Copy link
Member

This is the follow-up PR to contao/core#8331.

@fritzmg Does it solve your issue?

@Toflar Is varchar(255) long enough to store the full URI?

@Toflar
Copy link
Member

Toflar commented May 17, 2016

Hard to say if 255 are enough. But imho that question is the same if it's a relative URL :D Most domains are not 250 characters long ;)

@Toflar
Copy link
Member

Toflar commented May 17, 2016

I'd leave it as is for now.

@leofeyer leofeyer merged commit 24614db into develop May 17, 2016
@leofeyer leofeyer deleted the feature/absolute-search-urls branch May 17, 2016 18:36
@leofeyer leofeyer added this to the 4.2.0 milestone May 17, 2016
@leofeyer
Copy link
Member Author

Merged in 3d03fe0. I have also patched contao.org to use absolute URLs and it seems to work like a charm.

@Toflar
Copy link
Member

Toflar commented May 17, 2016

That's a bugfix then. Should be backported to 3.5.

@leofeyer
Copy link
Member Author

Yes. Will do if no problems occur.

@fritzmg
Copy link
Contributor

fritzmg commented May 18, 2016

@fritzmg Does it solve your issue?

I can only test with Contao 3.5 right now, but if it's the same as doing

'url' => \Environment::get('uri')

in /system/modules/core/classes/FrontendTemplate.php#L321, then yes, it works :)

@leofeyer
Copy link
Member Author

Yes, that is the same. In Contao 4, get('uri') will include the script name though (e.g. app_dev.php) and get('relativeRequest') will not, that's why I have used the latter.

leofeyer added a commit to contao/core that referenced this pull request Jun 10, 2016
@leofeyer
Copy link
Member Author

leofeyer commented Jun 10, 2016

Back ported in contao/core@3e6dc79.

leofeyer added a commit to contao/core that referenced this pull request Jun 16, 2016
jsonn pushed a commit to jsonn/pkgsrc that referenced this pull request Jun 16, 2016
Version 3.5.13 (2016-06-15)
---------------------------

### Fixed
Use the correct empty value when resetting copied fields (see #8365).

### Fixed
Remove the "required" attribute if a subpalette is closed (see #8192).

### Fixed
Correctly generate the feed links in a multi-domain setup (see #8329).

### Fixed
Correctly calculate the maximum file size for DropZone (see #8098).

### Fixed
Do not adjust the start date of a multi-day event (see #8194).

### Fixed
Versionize and show password changes (see #8301).

### Fixed
Make File::$dirname an absolute path again (see #8325).

### Fixed
Store the full URLs in the search index (see contao/core-bundle#491).

### Fixed
Standardize the group names in the checkbox widget (see #8002).

### Fixed
Prevent models from being registered twice (see #8224).

### Fixed
Prevent horizontal scrolling in the ACE editor (see #8328).

### Fixed
Correctly render the breadcrumb links in the template editor (see #8341).

### Fixed
Remove the role attributes from the navigation templates (see #8343).

### Fixed
Do not add `role="tablist"` to the accordion container (see #8344).
leofeyer pushed a commit that referenced this pull request May 14, 2019
Description
-----------

-

Commits
-------

a2ac550a Update StringUtil.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants